unfunc cam client. fix boxes, tabs, fdm support lerp
This commit is contained in:
parent
5c0fbbcba6
commit
eff943f0d6
5 changed files with 463 additions and 440 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -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 = [];
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue