mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Ported TriangleMesh::scale_xyz()
This commit is contained in:
@@ -126,6 +126,15 @@ void TriangleMesh::scale(float factor)
|
||||
stl_scale(&(this->stl), factor);
|
||||
}
|
||||
|
||||
void TriangleMesh::scale(std::vector<double> versor)
|
||||
{
|
||||
float fversor[3];
|
||||
fversor[0] = versor[0];
|
||||
fversor[1] = versor[1];
|
||||
fversor[2] = versor[2];
|
||||
stl_scale(&this->stl, fversor);
|
||||
}
|
||||
|
||||
void TriangleMesh::translate(float x, float y, float z)
|
||||
{
|
||||
stl_translate(&(this->stl), x, y, z);
|
||||
|
||||
Reference in New Issue
Block a user