add roughing option to clear all stock to aid lathe mode
This commit is contained in:
parent
c71786e56a
commit
8580307661
6 changed files with 17 additions and 2 deletions
|
|
@ -107,13 +107,15 @@ class Topo4 {
|
|||
range.min -= this.diam / 2;
|
||||
range.max += this.diam / 2;
|
||||
|
||||
// merge in tab vertices (so they don't affect slice range / dimensions)
|
||||
// merge in tab vertices here so they don't affect slice range / dimensions
|
||||
for (let i=0, l=tabverts.length; i<l; i += 3) {
|
||||
const x = tabverts[i];
|
||||
const z = tabverts[i + 2];
|
||||
tabverts[i] = z;
|
||||
tabverts[i + 2] = x;
|
||||
}
|
||||
|
||||
// re-create shared vertex array for workers
|
||||
this.vertices = [].appendAll(vertices).appendAll(tabverts).toFloat32().toShared();
|
||||
|
||||
const shards = Math.ceil(Math.min(25, vertices.length / 27000));
|
||||
|
|
|
|||
Loading…
Reference in a new issue