I have made several attempts to build some generic code that makes it easier to construct 2D shapes. Mostly guided by the SVG path syntax.
Such a syntax is a sequence and therefore order and tracking state is essential, exactly something openSCAD is designed NOT to do unless you wish to burn out your braincells with recursive logic. That is not an option anyway because the code would look horrible.
Is there any way, any suggestion how I can cleanly create a 2D path involving fillets, arcs, straight segments and splines using nice clean code that doesn't involve boolean shape operations?
What I want is pseudo code like this:
startPath(20,20); //starts empty point array
h(10); //relative 10 units along x axis
V(10); //absolute 10 units along y axis
a(r=10, to=[0,-20]); // arc with a radius of 10 ending at relative x 0 and y -20
points = end();
polygon(points);
//creates a rivet outline with a rounded head
I know there are many purists driving openSCAD along and I respect and appreciate the energy you put into this. But if I can't use programming logic I used for decades, or at least do stuff like this somehow, I am outta here because I spend way too much time wrangling code to do want I want it to do.
Sent from the
OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to
[hidden email]