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,24 +177,35 @@
.then(eng => eng.setProcess({ .then(eng => eng.setProcess({
camEaseAngle:10, camEaseAngle:10,
camEaseDown:true, camEaseDown:true,
ops:[ camZAnchor: "bottom",
{ camDepthFirst : false,
"type":"outline", camZThru: 1.524,
"tool":1000, camZBottom:-25, // temp hack to get around setTopZ bug
"spindle":15000, origin: {
"step":0.4, "x": -12.5,
"steps":1, "y": 12.5,
"down":1, "z": 25.00999809265137
"rate":2500,
"plunge":150,
"dogbones":false,
"omitvoid":false,
"omitthru":false,
"outside":false,
"inside":false,
"wide":false,
"top":false,
}, },
ops:[{
"type": "outline",
"tool": 1000,
"spindle": 13000,
"step": 0.4,
"steps": 1,
"down": 5.08,
"rate": 635,
"plunge": 51,
"dogbones": false,
"omitvoid": false,
"omitthru": false,
"outside": false,
"inside": false,
"wide": false,
"top": false,
"ov_topz": 0,
"ov_botz": 0,
"ov_conv": true
}
] ]
})) }))