restore 'omit thru' to roughing
This commit is contained in:
parent
bacc58ad73
commit
f4486ab781
3 changed files with 4 additions and 0 deletions
|
|
@ -441,6 +441,7 @@ export const conf = {
|
|||
camRoughTop: true,
|
||||
camRoughIn: true,
|
||||
camRoughOn: true,
|
||||
camRoughOmitThru: false,
|
||||
camRoughOmitVoid: false,
|
||||
camOutlineTool: 1000,
|
||||
camOutlineSpindle: 1000,
|
||||
|
|
|
|||
|
|
@ -227,6 +227,7 @@ export function createPopOps() {
|
|||
voids: 'camRoughVoid',
|
||||
flats: 'camRoughFlat',
|
||||
inside: 'camRoughIn',
|
||||
omitthru: 'camRoughOmitThru',
|
||||
ov_topz: 0,
|
||||
ov_botz: 0,
|
||||
ov_conv: '~camConventional',
|
||||
|
|
@ -246,6 +247,7 @@ export function createPopOps() {
|
|||
voids: UC.newBoolean(LANG.cr_clrp_s, undefined, { title: LANG.cr_clrp_l }),
|
||||
flats: UC.newBoolean(LANG.cr_clrf_s, undefined, { title: LANG.cr_clrf_l }),
|
||||
inside: UC.newBoolean(LANG.cr_olin_s, undefined, { title: LANG.cr_olin_l }),
|
||||
omitthru: UC.newBoolean(LANG.co_omit_s, undefined, { title: LANG.co_omit_l }),
|
||||
sep: UC.newBlank({ class: "pop-sep" }),
|
||||
exp: UC.newExpand("overrides"),
|
||||
ov_topz: UC.newInput(LANG.ou_ztop_s, { title: LANG.ou_ztop_l, convert: UC.toFloat, units: true }),
|
||||
|
|
|
|||
|
|
@ -144,6 +144,7 @@ class OpRough extends CamOp {
|
|||
|
||||
// inset or eliminate thru holes from shadow
|
||||
shadow = POLY.flatten(shadow.clone(true), [], true);
|
||||
if (!op.omitthru)
|
||||
thruHoles.forEach(hole => {
|
||||
shadow = shadow.map(p => {
|
||||
if (p.isEquivalent(hole)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue