mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
Added ModelInstance::world_matrix() method and stl_transform using eigen transform
This commit is contained in:
parent
5f2afad95e
commit
15b1340514
8 changed files with 89 additions and 46 deletions
|
@ -1141,13 +1141,12 @@ sub rotate {
|
|||
}
|
||||
|
||||
# Let's calculate vector of rotation axis (if we don't have it already)
|
||||
# The minus is there so that the direction is the same as was established
|
||||
if (defined $axis) {
|
||||
if ($axis == X) {
|
||||
$axis_x = -1;
|
||||
$axis_x = 1;
|
||||
}
|
||||
if ($axis == Y) {
|
||||
$axis_y = -1;
|
||||
$axis_y = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue