mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-29 04:44:26 +03:00
Some documentation, C++11 conversion, code beautification,
added some helper methods.
This commit is contained in:
@@ -103,6 +103,12 @@ inline void polygons_rotate(Polygons &polys, double angle)
|
||||
p.rotate(cos_angle, sin_angle);
|
||||
}
|
||||
|
||||
inline void polygons_reverse(Polygons &polys)
|
||||
{
|
||||
for (Polygon &p : polys)
|
||||
p.reverse();
|
||||
}
|
||||
|
||||
inline Points to_points(const Polygon &poly)
|
||||
{
|
||||
return poly.points;
|
||||
|
||||
Reference in New Issue
Block a user