mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 08:41:11 -06:00
XYZ mirroring from plater
This commit is contained in:
parent
ec7bb40da9
commit
e9910a2c0b
7 changed files with 84 additions and 2 deletions
|
@ -295,6 +295,9 @@ stl_mirror_xy(stl_file *stl)
|
|||
stl->stats.max.z = temp_size;
|
||||
stl->stats.min.z *= -1.0;
|
||||
stl->stats.max.z *= -1.0;
|
||||
stl_reverse_all_facets(stl);
|
||||
stl->stats.facets_reversed -= stl->stats.number_of_facets; // for not altering stats
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -316,6 +319,8 @@ stl_mirror_yz(stl_file *stl)
|
|||
stl->stats.max.x = temp_size;
|
||||
stl->stats.min.x *= -1.0;
|
||||
stl->stats.max.x *= -1.0;
|
||||
stl_reverse_all_facets(stl);
|
||||
stl->stats.facets_reversed -= stl->stats.number_of_facets; // for not altering stats
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -337,6 +342,8 @@ stl_mirror_xz(stl_file *stl)
|
|||
stl->stats.max.y = temp_size;
|
||||
stl->stats.min.y *= -1.0;
|
||||
stl->stats.max.y *= -1.0;
|
||||
stl_reverse_all_facets(stl);
|
||||
stl->stats.facets_reversed -= stl->stats.number_of_facets; // for not altering stats
|
||||
}
|
||||
|
||||
static float get_volume(stl_file *stl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue