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

Function simplifyPaths

TheForceEngine/TFE_Polygon/polygon.cpp:1304–1310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1302 }
1303
1304 void simplifyPaths(ClipperLib::Paths& paths)
1305 {
1306 ClipperLib::CleanPolygons(paths, 1.2f);
1307 ClipperLib::SimplifyPolygons(paths);
1308 ClipperLib::ReversePaths(paths);
1309 removeDegeneratePaths(paths);
1310 }
1311
1312 // Returns the number of polygons outside of the clip area.
1313 void clipPolygons(const BPolygon* subject, const BPolygon* clip, std::vector<BPolygon>& outPoly, BoolMode boolMode)

Callers 1

clipPolygonsFunction · 0.85

Calls 4

CleanPolygonsFunction · 0.85
SimplifyPolygonsFunction · 0.85
ReversePathsFunction · 0.85
removeDegeneratePathsFunction · 0.85

Tested by

no test coverage detected