Fine-tuning diamon intersections
This commit is contained in:
parent
fbde68c849
commit
946d3ddf87
@ -287,7 +287,8 @@ const intersectDiamondWithLineSegment = (
|
|||||||
]
|
]
|
||||||
// Remove duplicates
|
// Remove duplicates
|
||||||
.filter(
|
.filter(
|
||||||
(p, idx, points) => points.findIndex((d) => pointsEqual(p, d)) === idx,
|
(p, idx, points) =>
|
||||||
|
points.findIndex((d) => pointsEqual(p, d, 1e-3)) === idx,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user