mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-06 01:56:08 +08:00
recalculate voume on transformation
This commit is contained in:
parent
08e8bd1b7d
commit
fb418b6c60
@ -206,6 +206,7 @@ void stl_transform(stl_file *stl, double const *trafo3x4) {
|
|||||||
if(det < 0)
|
if(det < 0)
|
||||||
stl_reverse_all_facets(stl);
|
stl_reverse_all_facets(stl);
|
||||||
stl_get_size(stl);
|
stl_get_size(stl);
|
||||||
|
stl_calculate_volume(stl);
|
||||||
calculate_normals(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)
|
if(det < 0)
|
||||||
stl_reverse_all_facets(stl_dst);
|
stl_reverse_all_facets(stl_dst);
|
||||||
stl_get_size(stl_dst);
|
stl_get_size(stl_dst);
|
||||||
|
stl_calculate_volume(stl_dst);
|
||||||
calculate_normals(stl_dst);
|
calculate_normals(stl_dst);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user