mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-19 12:27:56 +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 ++) {
|
||||
const fillShape = fillShapes[i];
|
||||
if (fillShape.paths.length === 0) continue;
|
||||
|
||||
slice.add(fillShape, true);
|
||||
|
||||
// if (lineShapesClosed.paths.length > 0) {
|
||||
// lineShapesClosed = lineShapesClosed.difference(closedShape);
|
||||
// }
|
||||
// if (lineShapesOpen.paths.length > 0) {
|
||||
// lineShapesOpen = lineShapesOpen.difference(closedShape);
|
||||
// }
|
||||
if (lineShapesClosed.paths.length > 0) {
|
||||
lineShapesClosed = lineShapesClosed.difference(fillShape);
|
||||
}
|
||||
if (lineShapesOpen.paths.length > 0) {
|
||||
lineShapesOpen = lineShapesOpen.difference(fillShape);
|
||||
}
|
||||
}
|
||||
|
||||
if (lineShapesClosed.paths.length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user