mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
Changed the logic of the "ensure vertical wall thickness" feature
slightly by inflating the projected top/bottom/bottom bridge surfaces before they are added into a surface. This ensures, that the possible projected infill areas merge with the perimeter supporting areas, but the perimeter supporting areas will not be inflated on their own, if there is no touching projection of a top/bottom/bottom bridge surface.
This commit is contained in:
parent
4460b5ce50
commit
c2d5b32ee2
4 changed files with 97 additions and 13 deletions
|
@ -97,6 +97,15 @@ inline Polygons to_polygons(const SurfacesPtr &src)
|
|||
return polygons;
|
||||
}
|
||||
|
||||
inline ExPolygons to_expolygons(const SurfacesPtr &src)
|
||||
{
|
||||
ExPolygons expolygons;
|
||||
expolygons.reserve(src.size());
|
||||
for (SurfacesPtr::const_iterator it = src.begin(); it != src.end(); ++it)
|
||||
expolygons.push_back((*it)->expolygon);
|
||||
return expolygons;
|
||||
}
|
||||
|
||||
// Count a nuber of polygons stored inside the vector of expolygons.
|
||||
// Useful for allocating space for polygons when converting expolygons to polygons.
|
||||
inline size_t number_polygons(const Surfaces &surfaces)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue