re-enable filter for the lathe op
This commit is contained in:
parent
ce994b6a21
commit
85f7d77c08
4 changed files with 5 additions and 4 deletions
|
|
@ -6,6 +6,7 @@ Full docs @ https://docs.grid.space/projects/kiri-moto
|
||||||
# Release 3.9 (2023-03-11)
|
# Release 3.9 (2023-03-11)
|
||||||
|
|
||||||
* more graceful handling of security contexts blocking SharedArrayBuffer
|
* more graceful handling of security contexts blocking SharedArrayBuffer
|
||||||
|
* FDM refactor the 'detect' support feature for auto-placing manual supports
|
||||||
* CAM decrease cutting speed when entire tool is engaged in roughing
|
* CAM decrease cutting speed when entire tool is engaged in roughing
|
||||||
* CAM add dogbones support to traces ops
|
* CAM add dogbones support to traces ops
|
||||||
* CAM add scripted contour filtering (to be extended to other ops)
|
* CAM add scripted contour filtering (to be extended to other ops)
|
||||||
|
|
|
||||||
|
|
@ -1364,7 +1364,7 @@ CAM.init = function(kiri, api) {
|
||||||
sep: UC.newBlank({class:"pop-sep"}),
|
sep: UC.newBlank({class:"pop-sep"}),
|
||||||
tolerance: UC.newInput(LANG.ou_toll_s, {title:LANG.ou_toll_l, convert:UC.toFloat, bound:UC.bound(0,10.0), units:true, round:4}),
|
tolerance: UC.newInput(LANG.ou_toll_s, {title:LANG.ou_toll_l, convert:UC.toFloat, bound:UC.bound(0,10.0), units:true, round:4}),
|
||||||
leave: UC.newInput(LANG.cf_leav_s, {title:LANG.cf_leav_l, convert:UC.toFloat, bound:UC.bound(0,100)}),
|
leave: UC.newInput(LANG.cf_leav_s, {title:LANG.cf_leav_l, convert:UC.toFloat, bound:UC.bound(0,100)}),
|
||||||
// filter: UC.newRow([ UC.newButton(LANG.filter, contourFilter) ], {class:"ext-buttons f-row"})
|
filter: UC.newRow([ UC.newButton(LANG.filter, contourFilter) ], {class:"ext-buttons f-row"})
|
||||||
};
|
};
|
||||||
|
|
||||||
function canDogBones() {
|
function canDogBones() {
|
||||||
|
|
|
||||||
|
|
@ -875,7 +875,7 @@ class OpLathe extends CamOp {
|
||||||
async slice(progress) {
|
async slice(progress) {
|
||||||
let { op, state } = this;
|
let { op, state } = this;
|
||||||
let { addSlices } = state;
|
let { addSlices } = state;
|
||||||
// let filter = createFilter(op);
|
let filter = createFilter(op);
|
||||||
|
|
||||||
this.topo = await CAM.Topo4({
|
this.topo = await CAM.Topo4({
|
||||||
op,
|
op,
|
||||||
|
|
@ -884,7 +884,7 @@ class OpLathe extends CamOp {
|
||||||
progress(pct, msg);
|
progress(pct, msg);
|
||||||
},
|
},
|
||||||
ondone: (slices) => {
|
ondone: (slices) => {
|
||||||
// slices = filter(slices);
|
slices = filter(slices);
|
||||||
this.slices = slices;
|
this.slices = slices;
|
||||||
addSlices(slices, false);
|
addSlices(slices, false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1354,7 +1354,7 @@ function doSolidsFill(slice, spacing, angle, minArea, fillQ) {
|
||||||
|
|
||||||
// parent each solid polygon inside the smallest bounding top
|
// parent each solid polygon inside the smallest bounding top
|
||||||
let make_solid_layer = false;
|
let make_solid_layer = false;
|
||||||
let tops_area = tops.map(top => top.poly.areaDeep()).reduce((a,i) => a+i);
|
let tops_area = tops.length ? tops.map(top => top.poly.areaDeep()).reduce((a,i) => a+i) : 0;
|
||||||
for (let solid of solids) {
|
for (let solid of solids) {
|
||||||
for (let top of tops) {
|
for (let top of tops) {
|
||||||
let stop = [];
|
let stop = [];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue