You can keep adding things with union(), and removing things with difference().
Once you know that, you can make pretty elaborate things. You can start using loops, conditions and variables to do things.
You can also move things around with translate and rotate.
It’s pretty easy once you get the mindset.
If you’re wondering how we go from python/tcl to openscad, then that’s a different matter. I’m simply generating an openSCAD script using Tcl code, then running that script in openSCAD.
Yes, sorry @polarbrainfreeze I should have been more specific and save you all those keystrokes! lol I was talking more about going from python to openSCAD. I figured it was something like @jrlallo mentioned writing to some kind of file that openSCAD could read. I was hoping it would be more inline (not sure if thats even possible). I come from working in Rhino3D and Grasshopper which allows you to do parametric design but its a kind of visual component based programming. Not sure if your familiar but you should check it out. It is very easy to iterate through designs. They also have a python and C++ component that allows you to write pieces to interact with the rest of the script.
In the grasshopper environment you could have a circle component. It is passed 4 values (X,Y,Z and radius). Whats cool is you can pass a list of values. All of a sudden you have 100 circles with locations and radii based data that can come from anywhere. Also writing some python scripts can make it even more dynamic.
And if you’re worried about the price of Rhino. Ive got a solution for you. Grasshopper is a free plugin which creates its own files. You can download the Rhino trial which allows 25 saves but you should never need to use them just save the grasshopper script and there you go! its free!
I’ve re-installed Rhino and Grasshopper and I like the visual language. Once the Rhino trial is over, can you still export your designs to a PDF or some other format? Or does it disable all saving?
Rhino has 25 saves. After that you have to buy it. Grasshopper is completely free and just draws to Rhino. So if you do all your work in grasshopper and only save grasshopper files you should never need to save from Rhino. There are also plugins that will export to various files. I don’t know off hand but I’m sure there is a PDF or SVG one. Check Grasshoppers website there are hundreds of plugins.