mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 04:08:02 -06:00
ModelInstance full 3D transform code moved into a single technology
This commit is contained in:
parent
197600d452
commit
a651f5f5d7
22 changed files with 369 additions and 604 deletions
|
@ -14,7 +14,7 @@ void MultiPoint::scale(double factor)
|
|||
pt *= factor;
|
||||
}
|
||||
|
||||
#if ENABLE_MODELINSTANCE_3D_SCALE
|
||||
#if ENABLE_MODELINSTANCE_3D_FULL_TRANSFORM
|
||||
void MultiPoint::scale(double factor_x, double factor_y)
|
||||
{
|
||||
for (Point &pt : points)
|
||||
|
@ -23,7 +23,7 @@ void MultiPoint::scale(double factor_x, double factor_y)
|
|||
pt(1) *= factor_y;
|
||||
}
|
||||
}
|
||||
#endif // ENABLE_MODELINSTANCE_3D_SCALE
|
||||
#endif // ENABLE_MODELINSTANCE_3D_FULL_TRANSFORM
|
||||
|
||||
void MultiPoint::translate(double x, double y)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue