mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-09-09 00:07:55 -06:00
Ported align_to_origin()
This commit is contained in:
parent
597e9e6c14
commit
9d50616c7d
4 changed files with 15 additions and 1 deletions
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue