replace auto-facing with explicit clear-top
This commit is contained in:
parent
9cc1843f1f
commit
ffe8046c4e
4 changed files with 6 additions and 2 deletions
|
|
@ -405,6 +405,7 @@
|
|||
camRoughStock: 0,
|
||||
camRoughVoid: false,
|
||||
camRoughFlat: true,
|
||||
camRoughTop: false,
|
||||
camRoughIn: false,
|
||||
camRoughOn: true,
|
||||
camOutlineTool: 1000,
|
||||
|
|
|
|||
|
|
@ -1468,6 +1468,7 @@
|
|||
camRoughStock: UC.newInput(LANG.cr_lsto_s, {title:LANG.cr_lsto_l, convert:UC.toFloat, modes:CAM, units:true}),
|
||||
camRoughVoid: UC.newBoolean(LANG.cr_clrp_s, onBooleanClick, {title:LANG.cr_clrp_l, modes:CAM}),
|
||||
camRoughFlat: UC.newBoolean(LANG.cr_clrf_s, onBooleanClick, {title:LANG.cr_clrf_l, modes:CAM}),
|
||||
camRoughTop: UC.newBoolean(LANG.cr_clrt_s, onBooleanClick, {title:LANG.cr_clrt_l, modes:CAM}),
|
||||
camRoughIn: UC.newBoolean(LANG.cr_olin_s, onBooleanClick, {title:LANG.cr_olin_l, modes:CAM}),
|
||||
camRoughSep: UC.newBlank({class:"pop-sep"}),
|
||||
camRoughOn: UC.newBoolean(LANG.enable, onBooleanClick, {modes:CAM}),
|
||||
|
|
|
|||
|
|
@ -145,13 +145,13 @@
|
|||
thruHoles = tshadow.map(p => p.inner || []).flat();
|
||||
|
||||
// create facing slices
|
||||
if (procFacing || proc.camRoughFlat) {
|
||||
if (procFacing || proc.camRoughTop) {
|
||||
let shadow = shadowTop.tops.clone();
|
||||
let inset = POLY.offset(shadow, (roughToolDiam / (procRoughIn ? 2 : 1)));
|
||||
let facing = POLY.offset(inset, -(roughToolDiam * proc.camRoughOver), { count: 999, flat: true });
|
||||
let zdiv = ztOff / roughDown;
|
||||
let zstep = (zdiv % 1 > 0) ? ztOff / (Math.floor(zdiv) + 1) : roughDown;
|
||||
if (proc.camRoughFlat && ztOff === 0) {
|
||||
if (proc.camRoughTop && ztOff === 0) {
|
||||
// compensate for lack of z top offset in this scenario
|
||||
ztOff = zstep;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -276,6 +276,8 @@ kiri.lang['en-us'] = {
|
|||
cr_lsto_l: "horizontal offset from vertical faces\nstock to leave for finishing pass\nin workspace units",
|
||||
cr_ease_s: "ease down",
|
||||
cr_ease_l: "plunge cuts will\nspiral down or ease\nalong a linear path",
|
||||
cr_clrt_s: "clear top",
|
||||
cr_clrt_l: "run a clearing pass over\nthe bounding area of the part\nat z = 0",
|
||||
cr_clrp_s: "clear voids",
|
||||
cr_clrp_l: "mill out through pockets\ninstead of just the outline",
|
||||
cr_clrf_s: "clear faces",
|
||||
|
|
|
|||
Loading…
Reference in a new issue