MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / SimplifyPolygon

Function SimplifyPolygon

TheForceEngine/TFE_Polygon/clipper.cpp:4296–4302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4294//------------------------------------------------------------------------------
4295
4296void SimplifyPolygon(const Path &in_poly, Paths &out_polys, PolyFillType fillType)
4297{
4298 Clipper c;
4299 c.StrictlySimple(true);
4300 c.AddPath(in_poly, ptSubject, true);
4301 c.Execute(ctUnion, out_polys, fillType, fillType);
4302}
4303//------------------------------------------------------------------------------
4304
4305void SimplifyPolygons(const Paths &in_polys, Paths &out_polys, PolyFillType fillType)

Callers 1

cleanUpShapeFunction · 0.85

Calls 3

StrictlySimpleMethod · 0.80
AddPathMethod · 0.45
ExecuteMethod · 0.45

Tested by

no test coverage detected