mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 19:43:48 +01:00
fix construction of clipper paths
This commit is contained in:
parent
d8e95e3e76
commit
c8af1b422a
@ -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, false)
|
|
||||||
.clean(CLEAN_DELTA)
|
.clean(CLEAN_DELTA)
|
||||||
|
closedShapes = new Shape(closedShapes, true, true, true, true)
|
||||||
.fixOrientation()
|
.fixOrientation()
|
||||||
.simplify('pftNonZero')
|
.simplify('pftNonZero')
|
||||||
.seperateShapes();
|
.seperateShapes();
|
||||||
|
|
||||||
openShapes = new Shape(openShapes, false, true, false)
|
openShapes = new Shape(openShapes, false, true, true, true)
|
||||||
.clean(CLEAN_DELTA);
|
.clean(CLEAN_DELTA);
|
||||||
|
|
||||||
const slice = new Slice();
|
const slice = new Slice();
|
||||||
|
Loading…
Reference in New Issue
Block a user