mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
New sparse infill: "stars" - David's star shaped infill.
This is very similar to a "triangles" infill, but maximum two lines intersect at a single point. added utility function get_extents_vector()
This commit is contained in:
parent
eb0ab38618
commit
317e9131e8
10 changed files with 52 additions and 3 deletions
|
@ -587,6 +587,15 @@ BoundingBox get_extents_rotated(const ExPolygons &expolygons, double angle)
|
|||
return bbox;
|
||||
}
|
||||
|
||||
extern std::vector<BoundingBox> get_extents_vector(const ExPolygons &polygons)
|
||||
{
|
||||
std::vector<BoundingBox> out;
|
||||
out.reserve(polygons.size());
|
||||
for (ExPolygons::const_iterator it = polygons.begin(); it != polygons.end(); ++ it)
|
||||
out.push_back(get_extents(*it));
|
||||
return out;
|
||||
}
|
||||
|
||||
bool remove_sticks(ExPolygon &poly)
|
||||
{
|
||||
return remove_sticks(poly.contour) || remove_sticks(poly.holes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue