mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 05:37:55 +01:00
Fix bug where some shapes are skipped
This commit is contained in:
parent
a0b9cd1306
commit
396502948b
@ -87,7 +87,7 @@ export default function intersectionsToShapes(layerPoints, layerFaceIndexes, fac
|
||||
for (const objectIndex in shapes) {
|
||||
const shape = shapes[objectIndex]
|
||||
.map(lineSegment => lineSegment.map(pointIndex => points[pointIndex]))
|
||||
.filter(lineSegment => lineSegment.some(i => !almostEquals(lineSegment[0], lineSegment[1])));
|
||||
.filter(lineSegment => lineSegment.some(point => !almostEquals(lineSegment[0], point)));
|
||||
const openShape = openObjectIndexes[objectIndex];
|
||||
|
||||
const connectPoints = [];
|
||||
|
Loading…
Reference in New Issue
Block a user