remove FloatPacker and cutPolys

This commit is contained in:
Stewart Allen 2025-12-23 21:43:09 -05:00
commit d957c4ce7f
2 changed files with 1 additions and 63 deletions

View file

@ -183,7 +183,6 @@ export async function cam_slice(settings, widget, onupdate, ondone) {
color,
computeShadows,
contourPolys,
cutPolys,
cutTabs,
dark,
isIndexed,
@ -784,12 +783,6 @@ function cutTabs(tabs, offset) {
return out;
}
function cutPolys(polys, offset) {
let noff = [];
offset.forEach(op => noff.appendAll( op.cut(POLY.union(polys, 0, true), true) ));
return POLY.reconnect(noff);
}
function contourPolys(widget, polys) {
const raycaster = new THREE.Raycaster();
raycaster.ray.direction.set(0, 0, -1); // ray pointing down Z