Yann Büchau :python: on Nostr: npub134nz7…4sx9t Example: s = sphere(10) # user adds a sphere in code # then drags ...
npub134nz7a5kjr6pd54lc8yj9aredmw48ulux7r26ucdn76rkr7halxsq4sx9t (npub134n…sx9t) Example:
s = sphere(10) # user adds a sphere in code
# then drags it around in the GUI, code is changed to:
s = sphere(10).translate([1,2,3])
# user adds a cube in the GUI and rotates it, code is updated:
c = cube([10,20,30]).rotate(45,Z)
# user sets the cube to be a negative volume, code is updated:
s -= c
...
Sounds doable to me, in principle at least. This would be heaven on earth for my workflow 🤩
s = sphere(10) # user adds a sphere in code
# then drags it around in the GUI, code is changed to:
s = sphere(10).translate([1,2,3])
# user adds a cube in the GUI and rotates it, code is updated:
c = cube([10,20,30]).rotate(45,Z)
# user sets the cube to be a negative volume, code is updated:
s -= c
...
Sounds doable to me, in principle at least. This would be heaven on earth for my workflow 🤩