add area trace thru for better outline / rough behavior
This commit is contained in:
parent
ca1ff1dddb
commit
d40f19fe50
3 changed files with 5 additions and 2 deletions
|
|
@ -222,7 +222,7 @@ class OpArea extends CamOp {
|
|||
} else
|
||||
if (mode === 'trace') {
|
||||
let { tr_type } = op;
|
||||
let zs = down ? base_util.lerp(zTop, zBottom || area.minZ(), down) : [ bounds.min.z ];
|
||||
let zs = down ? base_util.lerp(zTop, op.thru ? zBottom : area.minZ(), down) : [ bounds.min.z ];
|
||||
let zroc = 0;
|
||||
let zinc = 1 / zs.length;
|
||||
for (let z of zs) {
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ class OpOutline extends CamOp {
|
|||
steps: op.wide ? op.steps + 1 : 1,
|
||||
surfaces: {},
|
||||
tool,
|
||||
thru: true,
|
||||
tr_type: 'outside',
|
||||
}));
|
||||
} else {
|
||||
|
|
@ -75,6 +76,7 @@ class OpOutline extends CamOp {
|
|||
spindle,
|
||||
surfaces: {},
|
||||
tool,
|
||||
thru: true,
|
||||
tr_type: 'outside',
|
||||
}));
|
||||
if (!inside) {
|
||||
|
|
|
|||
|
|
@ -96,7 +96,8 @@ class OpRough extends CamOp {
|
|||
ov_botz: op.ov_botz,
|
||||
ov_topz: op.ov_topz,
|
||||
areas: { [widget.id]: areas.map(p => p.toArray()) },
|
||||
surfaces: {}
|
||||
surfaces: {},
|
||||
thru: true
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue