XYZ mirroring from plater

This commit is contained in:
Alessandro Ranellucci 2014-06-14 21:14:33 +02:00
parent ec7bb40da9
commit e9910a2c0b
7 changed files with 84 additions and 2 deletions

View file

@ -193,6 +193,21 @@ void TriangleMesh::rotate_z(float angle)
stl_rotate_z(&(this->stl), angle);
}
void TriangleMesh::flip_x()
{
stl_mirror_yz(&this->stl);
}
void TriangleMesh::flip_y()
{
stl_mirror_xz(&this->stl);
}
void TriangleMesh::flip_z()
{
stl_mirror_xy(&this->stl);
}
void TriangleMesh::align_to_origin()
{
this->translate(