add proper negative extrusion handling (normals and chamfer reversal)

This commit is contained in:
Stewart Allen 2024-07-27 12:28:09 -04:00
commit 2efb9cfab8
3 changed files with 24 additions and 4 deletions

View file

@ -469,7 +469,6 @@ mesh.sketch = class MeshSketch extends mesh.object {
log('extrude', this.file || this.id, 'into', models.length, 'solid(s)');
let { center } = this;
let ngrp = api.group.new(models);
ngrp.floor();
ngrp.move(center.x, center.y, center.z);
// align extrusion with sketch plane
const euler = this.group.rotation;
@ -560,6 +559,7 @@ class SketchItem {
out.renderOrder = -1;
out.sketch_line = this;
out.position.z += bump + (order * bump);
// out.renderOrder = bump * order;
outs.push(out);
}
}