swap in openjscad modeling library for csg
This commit is contained in:
parent
3c0e735f63
commit
efc3c5c77a
5 changed files with 36 additions and 445 deletions
|
|
@ -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;) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue