mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
Use radians everywhere, including ModelInstance::rotation
This commit is contained in:
parent
79ce094e3a
commit
0d01348acc
4 changed files with 10 additions and 10 deletions
|
@ -202,6 +202,9 @@ void TriangleMesh::translate(float x, float y, float z)
|
|||
|
||||
void TriangleMesh::rotate(float angle, const Axis &axis)
|
||||
{
|
||||
// admesh uses degrees
|
||||
angle = Slic3r::Geometry::rad2deg(angle);
|
||||
|
||||
if (axis == X) {
|
||||
stl_rotate_x(&(this->stl), angle);
|
||||
} else if (axis == Y) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue