add clean to open shapes

Is now possible because of updated clipper-lib
This commit is contained in:
casperlamboo 2017-09-13 11:43:51 +02:00
parent f3c1ca885a
commit f857a2f76f

View File

@ -20,11 +20,8 @@ export default function shapesToSlices(shapes, settings) {
lineShapesClosed = new Shape(lineShapesClosed, true, true, true, true) lineShapesClosed = new Shape(lineShapesClosed, true, true, true, true)
.clean(cleanDelta); .clean(cleanDelta);
lineShapesOpen = new Shape(lineShapesOpen, false, true, true, true); lineShapesOpen = new Shape(lineShapesOpen, false, true, true, true)
// .clean(cleanDelta); .clean(cleanDelta);
// TODO
// Cleaning is actually wanted here but there is a bug in the clean function
// https://sourceforge.net/p/jsclipper/tickets/16/
const slice = new Slice(); const slice = new Slice();