clean after simplify

This commit is contained in:
casperlamboo 2017-05-13 15:26:04 +02:00 committed by Simon Voordouw
parent c8af1b422a
commit f70723d6dc

View File

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