mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Promising approach to medial axis pruning
This commit is contained in:
parent
8644440070
commit
3c77b301a7
13 changed files with 126 additions and 326 deletions
|
@ -135,10 +135,10 @@ ExPolygon::simplify(double tolerance, ExPolygons &expolygons) const
|
|||
}
|
||||
|
||||
void
|
||||
ExPolygon::medial_axis(Polylines* polylines) const
|
||||
ExPolygon::medial_axis(double width, Polylines* polylines) const
|
||||
{
|
||||
// init helper object
|
||||
Slic3r::Geometry::MedialAxis ma;
|
||||
Slic3r::Geometry::MedialAxis ma(width);
|
||||
|
||||
// populate list of segments for the Voronoi diagram
|
||||
this->contour.lines(&ma.lines);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue