
Aaron Spike wrote:
First off congratulations and thank you for the 0.40 release. I'm telling everyone how much I love Inkscape.
I was wondering if anyone could offer some advice or insight. I'm writing a little PHP script to convert a subset of SVG PathData (only M, C, L and z directives) drawn with Inkscape into DXF SPLINEs (NURBs) for use in QCad. I can do it successfully following the practical instructions at the bottom of this article about NURBs http://www.mactech.com/articles/develop/issue_25/schneider.html. To do this I write a separate SPLINE for each segment of a Path. I would prefer to write a single SPLINE for each continuous portion of a Path, but I can't get it right. So far I have just been guessing and guessing wrong. Any direction would be appreciated.
Aaron Spike
Aaron,
One of the new features of this release is the exporting of SVG Paths to Bezier prisms for POVRay. I think that if you compare an SVG file with the Bezier segments that it generates, then you will probably have a good idea how to do the same for DXF.
The main idea is that you must change the MoveTo/LineTo/CurveTo data to a set of Splines, each with the start point and its control point(s), and the end point and its control point(s).
You will find *.pov on the SaveAs dialog.
Bob