unfunc cam client. fix boxes, tabs, fdm support lerp

This commit is contained in:
Stewart Allen 2025-07-05 23:07:36 -04:00
commit eff943f0d6
5 changed files with 463 additions and 440 deletions

File diff suppressed because it is too large Load diff

View file

@ -8,9 +8,10 @@ import { tip2tipEmit } from '../../geo/paths.js';
function createFilter(op) {
let filter = slices => slices;
if (op.filter) {
let filterString = op.filter?.map(l => l.trim()).join('\n');
if (filterString) {
try {
const obj = eval(`( ${op.filter.join('\n')} )`);
const obj = eval(`( ${filterString} )`);
let idx = 0;
if (obj && obj.slices) {
const nadd = [];

View file

@ -667,7 +667,7 @@ function contourPolys(widget, polys) {
raycaster.ray.origin.set(point.x, point.y, 10000);
const intersects = raycaster.intersectObject(widget.mesh, false);
const firstHit = intersects[0] || null;
point.z = firstHit.point.z;
if (firstHit) point.z = firstHit.point.z;
}
}
}