mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-22 16:21:24 -06:00
Replace the flip word with mirror. #3060
This commit is contained in:
parent
f8d2c69713
commit
61f0a9e4da
8 changed files with 31 additions and 31 deletions
|
@ -529,10 +529,10 @@ ModelObject::rotate(float angle, const Axis &axis)
|
|||
}
|
||||
|
||||
void
|
||||
ModelObject::flip(const Axis &axis)
|
||||
ModelObject::mirror(const Axis &axis)
|
||||
{
|
||||
for (ModelVolumePtrs::const_iterator v = this->volumes.begin(); v != this->volumes.end(); ++v) {
|
||||
(*v)->mesh.flip(axis);
|
||||
(*v)->mesh.mirror(axis);
|
||||
}
|
||||
this->origin_translation = Pointf3(0,0,0);
|
||||
this->invalidate_bounding_box();
|
||||
|
|
|
@ -130,7 +130,7 @@ class ModelObject
|
|||
void translate(coordf_t x, coordf_t y, coordf_t z);
|
||||
void scale(const Pointf3 &versor);
|
||||
void rotate(float angle, const Axis &axis);
|
||||
void flip(const Axis &axis);
|
||||
void mirror(const Axis &axis);
|
||||
size_t materials_count() const;
|
||||
size_t facets_count() const;
|
||||
bool needed_repair() const;
|
||||
|
|
|
@ -230,7 +230,7 @@ void TriangleMesh::rotate_z(float angle)
|
|||
this->rotate(angle, Z);
|
||||
}
|
||||
|
||||
void TriangleMesh::flip(const Axis &axis)
|
||||
void TriangleMesh::mirror(const Axis &axis)
|
||||
{
|
||||
if (axis == X) {
|
||||
stl_mirror_yz(&this->stl);
|
||||
|
@ -242,19 +242,19 @@ void TriangleMesh::flip(const Axis &axis)
|
|||
stl_invalidate_shared_vertices(&this->stl);
|
||||
}
|
||||
|
||||
void TriangleMesh::flip_x()
|
||||
void TriangleMesh::mirror_x()
|
||||
{
|
||||
this->flip(X);
|
||||
this->mirror(X);
|
||||
}
|
||||
|
||||
void TriangleMesh::flip_y()
|
||||
void TriangleMesh::mirror_y()
|
||||
{
|
||||
this->flip(Y);
|
||||
this->mirror(Y);
|
||||
}
|
||||
|
||||
void TriangleMesh::flip_z()
|
||||
void TriangleMesh::mirror_z()
|
||||
{
|
||||
this->flip(Z);
|
||||
this->mirror(Z);
|
||||
}
|
||||
|
||||
void TriangleMesh::align_to_origin()
|
||||
|
|
|
@ -36,10 +36,10 @@ class TriangleMesh
|
|||
void rotate_x(float angle);
|
||||
void rotate_y(float angle);
|
||||
void rotate_z(float angle);
|
||||
void flip(const Axis &axis);
|
||||
void flip_x();
|
||||
void flip_y();
|
||||
void flip_z();
|
||||
void mirror(const Axis &axis);
|
||||
void mirror_x();
|
||||
void mirror_y();
|
||||
void mirror_z();
|
||||
void align_to_origin();
|
||||
void rotate(double angle, Point* center);
|
||||
TriangleMeshPtrs split() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue