mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 11:33:49 +01:00
add all optional arguments in Shape constructor
This commit is contained in:
parent
8d2ccc2c86
commit
868748ee2c
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -148,5 +148,5 @@ function optimizeShape(shape, start) {
|
|||||||
optimizedPaths.push(minPath);
|
optimizedPaths.push(minPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Shape(optimizedPaths, shape.closed, true);
|
return new Shape(optimizedPaths, shape.closed, true, false);
|
||||||
}
|
}
|
||||||
|
@ -9,13 +9,13 @@ 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];
|
||||||
|
|
||||||
closedShapes = new Shape(closedShapes, true, true)
|
closedShapes = new Shape(closedShapes, true, true, false)
|
||||||
.clean(CLEAN_DELTA)
|
.clean(CLEAN_DELTA)
|
||||||
.fixOrientation()
|
.fixOrientation()
|
||||||
.removeOverlap()
|
.removeOverlap()
|
||||||
.seperateShapes();
|
.seperateShapes();
|
||||||
|
|
||||||
openShapes = new Shape(openShapes, false, true)
|
openShapes = new Shape(openShapes, false, true, false)
|
||||||
.clean(CLEAN_DELTA);
|
.clean(CLEAN_DELTA);
|
||||||
|
|
||||||
const slice = new Slice();
|
const slice = new Slice();
|
||||||
|
Loading…
Reference in New Issue
Block a user