mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 05:37:55 +01:00
fix some edge cases in intersections to shapes
This commit is contained in:
parent
1434006f95
commit
120b49dfb7
@ -91,6 +91,8 @@ export default function intersectionsToShapes(layerPoints, layerFaceIndexes, fac
|
|||||||
for (let pathIndex = 0; pathIndex < shape.length; pathIndex ++) {
|
for (let pathIndex = 0; pathIndex < shape.length; pathIndex ++) {
|
||||||
const path = shape[pathIndex];
|
const path = shape[pathIndex];
|
||||||
|
|
||||||
|
if (path.length === 2 && almostEquals(path[0], path[1])) continue;
|
||||||
|
|
||||||
let shapeStartPoint = path[0];
|
let shapeStartPoint = path[0];
|
||||||
for (const point of connectPoints) {
|
for (const point of connectPoints) {
|
||||||
if (almostEquals(point.point, shapeStartPoint)) {
|
if (almostEquals(point.point, shapeStartPoint)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user