swap in openjscad modeling library for csg

This commit is contained in:
Stewart Allen 2022-01-30 20:24:02 -05:00
commit efc3c5c77a
5 changed files with 36 additions and 445 deletions

View file

@ -162,17 +162,10 @@ mesh.model = class MeshModel extends mesh.object {
return;
}
worker.model_rebuild({
mode: opt.mode || 'slice',
matrix: this.matrix,
id: this.id
}).then(data => {
let { vertices, lines } = data;
if (vertices) {
mesh.api.group.new([new mesh.model({
file: `healed`,
mesh: data.vertices
})]).floor().centerXY().setSelected();
}
let { lines } = data;
if (lines) {
let points = [];
for (let i=0; i<lines.length;) {