add all optional arguments in Shape constructor

This commit is contained in:
casperlamboo 2016-08-27 10:08:57 +02:00
parent 8d2ccc2c86
commit 868748ee2c
3 changed files with 4 additions and 4 deletions

View File

@ -27,5 +27,5 @@ export default function getFillTemplate(bounds, size, even, uneven) {
}
}
return new Shape(paths, false, true);
return new Shape(paths, false, true, true);
}

View File

@ -148,5 +148,5 @@ function optimizeShape(shape, start) {
optimizedPaths.push(minPath);
}
return new Shape(optimizedPaths, shape.closed, true);
return new Shape(optimizedPaths, shape.closed, true, false);
}

View File

@ -9,13 +9,13 @@ export default function shapesToSlices(shapes, settings) {
for (let layer = 0; layer < shapes.length; layer ++) {
let { closedShapes, openShapes } = shapes[layer];
closedShapes = new Shape(closedShapes, true, true)
closedShapes = new Shape(closedShapes, true, true, false)
.clean(CLEAN_DELTA)
.fixOrientation()
.removeOverlap()
.seperateShapes();
openShapes = new Shape(openShapes, false, true)
openShapes = new Shape(openShapes, false, true, false)
.clean(CLEAN_DELTA);
const slice = new Slice();