From 1ce75369a1cf0f3624a0d02213878b31237d1973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Mon, 4 Mar 2024 22:22:04 +0100 Subject: [PATCH] fix: routing --- src/lib/slicer/worker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/slicer/worker.ts b/src/lib/slicer/worker.ts index f293f7b..0e3bbf3 100644 --- a/src/lib/slicer/worker.ts +++ b/src/lib/slicer/worker.ts @@ -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: [] });