From 33603d9236dc88ec1c4ac961a008a2dc89ac6eb6 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sun, 15 Jun 2025 15:02:06 -0400 Subject: [PATCH] fix plit --- src2/mesh/build.js | 2 +- src2/mesh/split.js | 2 +- src2/mesh/work.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src2/mesh/build.js b/src2/mesh/build.js index b9e88507..05862ac8 100644 --- a/src2/mesh/build.js +++ b/src2/mesh/build.js @@ -917,7 +917,7 @@ function ui_build() { sel_item[lab] = nval; sketch.render(); }, { sketch: true }); - editable(el, el2, e3); + editable(el, el2, el3); } return; diff --git a/src2/mesh/split.js b/src2/mesh/split.js index 474c4cca..229dcf60 100644 --- a/src2/mesh/split.js +++ b/src2/mesh/split.js @@ -61,7 +61,7 @@ const split = { if (buttons) { return; } - let { dim, mid } = meshUtil.bounds(meshes); + let { dim, mid } = meshUtil.bounds(models); let { point, face, object } = int; let { x, y, z } = point; // set appearance of split plane diff --git a/src2/mesh/work.js b/src2/mesh/work.js index 696b1e1c..88705aee 100644 --- a/src2/mesh/work.js +++ b/src2/mesh/work.js @@ -10,6 +10,7 @@ import { client as motoClient } from '../moto/client.js'; import { worker } from '../moto/worker.js'; import { sliceConnect } from '../geo/slicer.js'; import { newPolygon } from '../geo/polygon.js'; +import { newPoint } from "../geo/point.js"; import { polygons } from '../geo/polygons.js'; import { CSG } from '../geo/csg.js'; import { util } from './util.js';