From c64337f3c42969c7da2af7d2031d17830b57f6cb Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sun, 1 Feb 2026 09:43:42 -0500 Subject: [PATCH] expose mesh worker log function --- src/mesh/geom.js | 1 - src/mesh/tool.js | 2 +- src/mesh/work.js | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesh/geom.js b/src/mesh/geom.js index a3041072..24cfea4f 100644 --- a/src/mesh/geom.js +++ b/src/mesh/geom.js @@ -2,7 +2,6 @@ import { THREE } from '../ext/three.js'; const { Matrix4, Matrix3, Vector3, Box3 } = THREE; -import { license as motoLicense } from '../moto/license.js'; // geometry helper functions const geom = { diff --git a/src/mesh/tool.js b/src/mesh/tool.js index 466bb692..82d8d9d0 100644 --- a/src/mesh/tool.js +++ b/src/mesh/tool.js @@ -929,7 +929,7 @@ class MeshTool { } pitch = p.round(3); - geom.log(`gear pitch radius: ${pitch}`); + log(`gear pitch radius: ${pitch}`); } return { gear, pitch }; diff --git a/src/mesh/work.js b/src/mesh/work.js index ccbd0d54..107279ad 100644 --- a/src/mesh/work.js +++ b/src/mesh/work.js @@ -35,6 +35,8 @@ function log(msg) { return worker.publish("mesh.log", msg); } +self.log = log; + function cacheUpdate(id, data) { return Object.assign(cache[id], data); }