4 ms·
I don't recommend anyone try to use it, but there's also OpenCSCAD[1], which allows metaprogramming openscad from C. I wrote it ages ago, back when OpenSCAD di
by smcameron 5y ago
I don't recommend anyone try to use it, but there's also OpenCSCAD[1], which allows metaprogramming openscad from C. I wrote it ages ago, back when OpenSCAD didn't support recursion[2]. Back in the early days of openscad, (as I recall it) there were quite a few annoying things missing which I suspect caused some of the proliferation of metaprogramming attempts.
[1] http://smcameron.github.io/opencscad/ http://smcameron.github.io/opencscad/
[2] At least I think OpenSCAD didn't support recursion back then, though now, this seems so unlikely that I find myself doubting it. But I also feel like I must have tried it, found it not working, and went on to write this toy OpenCSCAD thing as a result. It was a long time ago, and I don't really remember.
Edit: A previous discussion here about Amazon banning the word "union" from chat rooms (among other words) recently reminded me of this too, as "union" in OpenSCAD is obviously a thing, but it's also a reserved word in C. In OpenCSCAD, a union is therefore called an "onion". This could also work at Amazon. Until they banned onions.