> I am wondering how people would feel if the polygon() command could
> accept a simple string in the SVG path syntax , for example, following
> http://www.w3schools.com/svg/svg_path.asp >
> polygon("M150 0 L75 200 L225 200 Z"); // triangle -> M = moveto, L =
> lineto, Z = close path
> polygon("M 100 350 q 150 -300 300 0 Z"); // curve with flat bottom ->
> q = bezier curve control point
> The motivation is to enable Bezier curves without having to invent a
> new syntax, and also to leverage the SVG knowledge already 'out there'
> in internet-land.
> The first iteration of this feature would only work with 'closed
> paths' (with the Z on the end) and very simple stuff (quadratic
> Does it seem useful?
Yes and no. It's an obvious way to do this until you try and parameterise
it at which point I don't think the string handling in OpenSCAD is up to
it. It probably needs point types adding to the polygon itself in a way
that can be manipulated.
An svg_to_poly() helper would still I am sure be a handy extra.