mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 05:37:55 +01:00
fix filled shapes
This commit is contained in:
parent
e056b37677
commit
cd8687d148
@ -95,7 +95,11 @@ export default function intersectionsToShapes(layerPoints, layerFaceIndexes, fac
|
|||||||
const path = shape[pathIndex];
|
const path = shape[pathIndex];
|
||||||
|
|
||||||
if (almostEquals(path[0], path[path.length - 1])) {
|
if (almostEquals(path[0], path[path.length - 1])) {
|
||||||
lineShapesClosed.push(path);
|
if (openShape) {
|
||||||
|
lineShapesClosed.push(path);
|
||||||
|
} else {
|
||||||
|
fillShapes.push(path);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user