add more splitting / intersection visualizations

This commit is contained in:
Stewart Allen 2025-09-17 00:55:09 -04:00
commit 0fca0f2e5a
2 changed files with 129 additions and 31 deletions

View file

@ -645,7 +645,7 @@ export function offset(polys, dist, opts = {}) {
for (let poly of polys) {
// convert to clipper format
poly = poly.toClipper();
if (clean) poly = CleanPolygons(poly, config.clipperClean);
if (clean) poly = CleanPolygons(poly, opts.cleanDist ?? config.clipperClean);
if (simple) poly = SimplifyPolygons(poly, fill);
coff.AddPaths(poly, join, type);
}