mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-06-29 05:56:48 +03:00
Ported align_to_origin()
This commit is contained in:
@@ -112,4 +112,13 @@ void TriangleMesh::translate(float x, float y, float z)
|
||||
stl_translate(&(this->stl), x, y, z);
|
||||
}
|
||||
|
||||
void TriangleMesh::align_to_origin()
|
||||
{
|
||||
this->translate(
|
||||
-(this->stl.stats.min.x),
|
||||
-(this->stl.stats.min.y),
|
||||
-(this->stl.stats.min.z)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user