mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2025-01-09 11:04:24 +01:00
difference line shapes with fill shapes
This commit is contained in:
parent
198ca783f7
commit
60c70cdbd5
@ -27,14 +27,16 @@ export default function shapesToSlices(shapes, settings) {
|
|||||||
|
|
||||||
for (let i = 0; i < fillShapes.length; i ++) {
|
for (let i = 0; i < fillShapes.length; i ++) {
|
||||||
const fillShape = fillShapes[i];
|
const fillShape = fillShapes[i];
|
||||||
|
if (fillShape.paths.length === 0) continue;
|
||||||
|
|
||||||
slice.add(fillShape, true);
|
slice.add(fillShape, true);
|
||||||
|
|
||||||
// if (lineShapesClosed.paths.length > 0) {
|
if (lineShapesClosed.paths.length > 0) {
|
||||||
// lineShapesClosed = lineShapesClosed.difference(closedShape);
|
lineShapesClosed = lineShapesClosed.difference(fillShape);
|
||||||
// }
|
}
|
||||||
// if (lineShapesOpen.paths.length > 0) {
|
if (lineShapesOpen.paths.length > 0) {
|
||||||
// lineShapesOpen = lineShapesOpen.difference(closedShape);
|
lineShapesOpen = lineShapesOpen.difference(fillShape);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lineShapesClosed.paths.length > 0) {
|
if (lineShapesClosed.paths.length > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user