mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-26 10:11:10 -06:00
More work on the clipping method for medial axis. Includes Polyline->is_valid()
This commit is contained in:
parent
7e8c535f6a
commit
b5aaeb9b12
6 changed files with 38 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue