Category: Qtvcp
length = hal.get_value("hor_pos")
length = (float(length) + 115)
mat = Box(60, -30, -30, length, 30, 30)
mat = Color([0.4, 0.6, 0.2, 0.4],[mat])
mat = Rotate([mat],0,45,0,0)
mat = Translate([mat],0,0,0)
mat = Color([1, 1, 0, 1],[mat])
This is how I build a material element mounted in a lathe.
For now, only the material length is determined automatically, depending on the position of the lathe tailstock.
After the first simulation run, the material dimensions are drawn correctly. The problem is with rebuilding the dimension after running another ngc file with different dimensions.
I tried using HalToolCylinder and HalToolTriangle in various ways, but I must be doing something wrong