place single wall exactly on medial axis vs inter

This commit is contained in:
Stewart Allen 2025-09-17 10:21:00 -04:00
commit 4b64c4b8b0

View file

@ -718,10 +718,19 @@ function thin_type_3(params) {
return;
}
p1.claimed = true;
if (pop.length === 1) {
// for single wall place it exactly on medial axis
shells.push(newPolygon().centerCircle({
x: min.x,
y: min.y
}, mr, 12));
} else {
// otherwise use divisions
shells.push(newPolygon().centerCircle({
x: np1.x + dy * (pop[0] - dstep),
y: np1.y - dx * (pop[0] - dstep)
}, pop[0], 10));
}, pop[0], 12));
}
}
});
}