fix: routing

This commit is contained in:
2024-03-04 22:22:04 +01:00
parent 67c1c93fa9
commit 1ce75369a1

View File

@@ -170,7 +170,8 @@ function slice({
if (
hit &&
hit1.point.z < hit2.point.z &&
hit1.point.clone().sub(hit2.point).angleTo(bedNormal) > maxNonPlanarAngle
Math.abs(Math.PI / 2 - hit1.point.clone().sub(hit2.point).angleTo(bedNormal)) >
maxNonPlanarAngle
) {
withheld[activeIndex].push({ type: LayerType.Surface, id: [index, surface] });
withheld[activeIndex].push({ type: LayerType.Line, geometry: [] });