mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Ported TriangleMesh::scale_xyz()
This commit is contained in:
parent
5e34a9cf21
commit
9b12d6037a
7 changed files with 45 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue