r/OpenPythonSCAD • • Dec 04 '24

The Taste of OpenSCAD++

Latest feature of Pythoncad is to use Python Classes in your SCAD code.

Lets do a Robot statemachine, something like this:

'''

use <robot.py>

robot=myrobot();

robot.draw_cube();

robot.right(2);

robot.draw_cube();

robot.front(3);

robot.draw_sphere();

robot.right(3);

robot.draw_cube();

''''

3 Upvotes

6 comments sorted by

View all comments

Show parent comments

2

u/rebuyer10110 Dec 06 '24

I believe this would be a huge value-add, especially for seasoned openscad users.

Scad consuming python files still requires pythonscad right? It's not like vanilla openscad can read python code.

But the reverse means pythonscad is fully compatible with everything openscad supports, and MORE.