mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-16 19:17:57 +01:00
parent
396502948b
commit
374fc4a32e
@ -59,6 +59,7 @@ export default function intersectionsToShapes(layerPoints, layerFaceIndexes, fac
|
|||||||
} else {
|
} else {
|
||||||
lineSegment.push(...startConnects[pointB]);
|
lineSegment.push(...startConnects[pointB]);
|
||||||
endConnects[lineSegment[lineSegment.length - 1]] = lineSegment;
|
endConnects[lineSegment[lineSegment.length - 1]] = lineSegment;
|
||||||
|
shapes[objectIndex].splice(shapes[objectIndex].indexOf(startConnects[pointB]), 1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
lineSegment.push(pointB);
|
lineSegment.push(pointB);
|
||||||
@ -70,6 +71,7 @@ export default function intersectionsToShapes(layerPoints, layerFaceIndexes, fac
|
|||||||
if (endConnects[pointA]) {
|
if (endConnects[pointA]) {
|
||||||
lineSegment.unshift(...endConnects[pointA]);
|
lineSegment.unshift(...endConnects[pointA]);
|
||||||
startConnects[lineSegment[0]] = lineSegment;
|
startConnects[lineSegment[0]] = lineSegment;
|
||||||
|
shapes[objectIndex].splice(shapes[objectIndex].indexOf(endConnects[pointA]), 1);
|
||||||
} else {
|
} else {
|
||||||
lineSegment.unshift(pointA);
|
lineSegment.unshift(pointA);
|
||||||
startConnects[pointA] = lineSegment;
|
startConnects[pointA] = lineSegment;
|
||||||
|
Loading…
Reference in New Issue
Block a user