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); }