This is why we cannot have nice things. This is why we test our changes before committing.
Pray for angus johnson who is support too many languages, and needs to find a text editor that removes trailing whitespace.
This commit is contained in:
parent
dbb72d161e
commit
84cf722541
|
@ -1211,7 +1211,7 @@ bool ClipperBase::AddPath(const Path &pg, PolyType PolyTyp, bool Closed)
|
|||
}
|
||||
InsertLocalMinima(locMin);
|
||||
m_edges.push_back(edges);
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
m_edges.push_back(edges);
|
||||
|
@ -4255,6 +4255,15 @@ void ReversePaths(Paths& p)
|
|||
}
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void SimplifyPolygon(const Path &in_poly, Paths &out_polys, PolyFillType fillType)
|
||||
{
|
||||
Clipper c;
|
||||
c.StrictlySimple(true);
|
||||
c.AddPath(in_poly, ptSubject, true);
|
||||
c.Execute(ctUnion, out_polys, fillType, fillType);
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void SimplifyPolygons(const Paths &in_polys, Paths &out_polys, PolyFillType fillType)
|
||||
{
|
||||
Clipper c;
|
||||
|
|
Loading…
Reference in New Issue