mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-26 15:34:57 +01:00
add all optional arguments in Shape constructor
This commit is contained in:
parent
0f69526cbb
commit
f4db432e24
@ -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);
|
||||
}
|
||||
|
||||
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 ++) {
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user