add more splitting / intersection visualizations
This commit is contained in:
parent
2cad3f0e18
commit
0fca0f2e5a
2 changed files with 129 additions and 31 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue