updated approach to deps, mod loading, main entrypoints

This commit is contained in:
Stewart Allen 2022-02-20 12:56:43 -05:00
commit 19522665b2
21 changed files with 299 additions and 321 deletions

View file

@ -2,17 +2,12 @@
"use strict";
(function() {
// dep: ext.earcut
gapp.register("mesh.tool", [
"mesh.geom", // dep: mesh.geom
]);
// dep: mesh.geom
gapp.register("mesh.tool", [], (root, exports) => {
let mesh = self.mesh = self.mesh || {};
if (mesh.tool) return;
let geom = mesh.geom;
const { mesh } = root;
const { geom } = mesh;
/**
* tool for identiying defects and healing them
@ -470,4 +465,4 @@ mesh.tool = class MeshTool {
}
};
})();
});