mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
More work on the clipping method for medial axis. Includes Polyline->is_valid()
This commit is contained in:
@@ -40,6 +40,15 @@ Polyline::clip_end(double distance)
|
||||
}
|
||||
}
|
||||
|
||||
// removes the given distance from the start of the polyline
|
||||
void
|
||||
Polyline::clip_start(double distance)
|
||||
{
|
||||
this->reverse();
|
||||
this->clip_end(distance);
|
||||
if (this->points.size() >= 2) this->reverse();
|
||||
}
|
||||
|
||||
#ifdef SLIC3RXS
|
||||
SV*
|
||||
Polyline::to_SV_ref()
|
||||
|
||||
Reference in New Issue
Block a user