mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-17 15:11:56 -06:00
Squash merge of lh_brim_rework,
brim separated to Brim.cpp,hpp Refactored accessors to PrintObjectPtrs, PrintRegionPtrs, LayerPtrs, SupportLayerPtrs for const correctness.
This commit is contained in:
parent
e52efe48b0
commit
73c9f939e0
37 changed files with 803 additions and 243 deletions
|
@ -80,6 +80,13 @@ bool ExPolygon::is_valid() const
|
|||
return true;
|
||||
}
|
||||
|
||||
void ExPolygon::douglas_peucker(double tolerance)
|
||||
{
|
||||
this->contour.douglas_peucker(tolerance);
|
||||
for (Polygon &poly : this->holes)
|
||||
poly.douglas_peucker(tolerance);
|
||||
}
|
||||
|
||||
bool ExPolygon::contains(const Line &line) const
|
||||
{
|
||||
return this->contains(Polyline(line.a, line.b));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue