forther specify process settings

This commit is contained in:
bakedpotatolord 2025-05-15 09:53:21 -06:00
commit bcb87e17f7

View file

@ -146,15 +146,16 @@
kiri.newEngine() kiri.newEngine()
.setListener(display_message) .setListener(display_message)
.load("/obj/cube.stl") .load("/obj/cube.stl")
// should to call widget.setTopZ here ideally
.then(eng => eng.setMode("CAM")) .then(eng => eng.setMode("CAM"))
.then(eng => eng.setStock({ .then(eng => eng.setStock({
"x": 110.00001525878906, "x": 25,
"y": 60, "y": 25,
"z": 60, "z": 24.999998092651367,
"center": { "center": {
"x": 0, "x": 0,
"y": 0, "y": 0,
"z": 12.5 "z": 12.499999046325684
} }
})) }))
.then(eng=> eng.setTools([ .then(eng=> eng.setTools([
@ -176,16 +177,24 @@
.then(eng => eng.setProcess({ .then(eng => eng.setProcess({
camEaseAngle:10, camEaseAngle:10,
camEaseDown:true, camEaseDown:true,
ops:[ camZAnchor: "bottom",
{ camDepthFirst : false,
camZThru: 1.524,
camZBottom:-25, // temp hack to get around setTopZ bug
origin: {
"x": -12.5,
"y": 12.5,
"z": 25.00999809265137
},
ops:[{
"type": "outline", "type": "outline",
"tool": 1000, "tool": 1000,
"spindle":15000, "spindle": 13000,
"step": 0.4, "step": 0.4,
"steps": 1, "steps": 1,
"down":1, "down": 5.08,
"rate":2500, "rate": 635,
"plunge":150, "plunge": 51,
"dogbones": false, "dogbones": false,
"omitvoid": false, "omitvoid": false,
"omitthru": false, "omitthru": false,
@ -193,7 +202,10 @@
"inside": false, "inside": false,
"wide": false, "wide": false,
"top": false, "top": false,
}, "ov_topz": 0,
"ov_botz": 0,
"ov_conv": true
}
] ]
})) }))