mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-30 05:14:30 +03:00
Implemented rotation of the support structure.
This commit is contained in:
@@ -91,8 +91,10 @@ inline void polygons_append(Polygons &dst, Polygons &&src)
|
||||
|
||||
inline void polygons_rotate(Polygons &polys, double angle)
|
||||
{
|
||||
for (Polygons::iterator p = polys.begin(); p != polys.end(); ++p)
|
||||
p->rotate(angle);
|
||||
const double cos_angle = cos(angle);
|
||||
const double sin_angle = sin(angle);
|
||||
for (Polygon &p : polys)
|
||||
p.rotate(cos_angle, sin_angle);
|
||||
}
|
||||
|
||||
inline Points to_points(const Polygon &poly)
|
||||
|
||||
Reference in New Issue
Block a user