mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-04 20:44:00 -06:00
Ported TriangleMesh->rotate
This commit is contained in:
parent
9402898c58
commit
d881c5ab2f
4 changed files with 14 additions and 1 deletions
|
@ -123,4 +123,11 @@ void TriangleMesh::align_to_origin()
|
|||
);
|
||||
}
|
||||
|
||||
void TriangleMesh::rotate(double angle, Point* center)
|
||||
{
|
||||
this->translate(-center->x, -center->y, 0);
|
||||
stl_rotate_z(&(this->stl), (float)angle);
|
||||
this->translate(+center->x, +center->y, 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue