At the bottom of this message is a link to an initial demo of my work in progress.
There are some important notes (READ THESE!):
http://www.halibut.com/~tcobbs/ldraw/pri...at-001.zip
There are some important notes (READ THESE!):
- It creates a .ldr file with the same name as the input .svg file, overwriting any existing .ldr file with the same name without prompting.
- It doesn't properly support any kind of curves inside paths (cubic Bézier, quadratic Bézier, arc). Instead of drawing a curve, it draws a straight line between the two ends of the curve.
- It isn't fully working with winding rules (odd/even, non-zero, etc). This means that some files look great, while others have overlapping (co-planar) polygons.
- It only supports a small subset of SVG. In particular, references to named items don't work, nor do coordinate transformations.
- The output is all triangles; anything that would have generated lines is ignored.
- I haven't checked if the output triangles all have the same winding (for BFC). I believe that they should, but haven't checked.
- The only SVG nodes supported are switch, g, polygon, path, rect, and circle.
http://www.halibut.com/~tcobbs/ldraw/pri...at-001.zip