mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-18 03:19:06 -07: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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user