From fb418b6c60aaf12779da19ebaeb86562b99cdb28 Mon Sep 17 00:00:00 2001 From: Michael Kirsch Date: Sun, 7 Jul 2019 22:29:42 +0200 Subject: [PATCH] recalculate voume on transformation --- xs/src/admesh/util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xs/src/admesh/util.c b/xs/src/admesh/util.c index fae33b741..b66465404 100644 --- a/xs/src/admesh/util.c +++ b/xs/src/admesh/util.c @@ -206,6 +206,7 @@ void stl_transform(stl_file *stl, double const *trafo3x4) { if(det < 0) stl_reverse_all_facets(stl); stl_get_size(stl); + stl_calculate_volume(stl); calculate_normals(stl); } @@ -246,6 +247,7 @@ void stl_get_transform(stl_file const *stl_src, stl_file *stl_dst, double const if(det < 0) stl_reverse_all_facets(stl_dst); stl_get_size(stl_dst); + stl_calculate_volume(stl_dst); calculate_normals(stl_dst); }