Difference between revisions of "BezierSplineArcFittingScript"

From Hive13 Wiki
Jump to navigation Jump to search
m (Changed date in infobox to ISO8601 because all other date formats are morally and religiously objectionable. Added category.)
Line 1: Line 1:
 
[[Category:ActiveProjects]]
 
[[Category:ActiveProjects]]
 +
 +
A script, currently targeting QCAD, to convert a Bezier Spline exported from Illustrator into a Polyline containing line and arc segments.
 +
 +
There's actually no real reason for this since the approximation by tiny lines of splines is usually enough for a machine to work with, but theoretically conversion to a polyline with arc segments will allow for much less generated G-Code, and I am nothing if not theoretical.
 +
 
{{Infobox Project  
 
{{Infobox Project  
 
|ProjectTitle=Bezier Spline Arc-Fitting Script
 
|ProjectTitle=Bezier Spline Arc-Fitting Script
Line 6: Line 11:
 
|EndDate=?
 
|EndDate=?
 
}}
 
}}
 
A script, currently targeting QCAD, to convert a Bezier Spline exported from Illustrator into a Polyline containing line and arc segments.
 
 
There's actually no real reason for this since the approximation by tiny lines of splines is usually enough for a machine to work with, but theoretically conversion to a polyline with arc segments will allow for much less generated G-Code, and I am nothing if not theoretical.
 
  
 
== Maths ==
 
== Maths ==

Revision as of 20:24, 2 September 2014


A script, currently targeting QCAD, to convert a Bezier Spline exported from Illustrator into a Polyline containing line and arc segments.

There's actually no real reason for this since the approximation by tiny lines of splines is usually enough for a machine to work with, but theoretically conversion to a polyline with arc segments will allow for much less generated G-Code, and I am nothing if not theoretical.



Property "ProjectImage" (as page type) with input value "{{{ProjectImage}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.

Hive13 Project
Bezier Spline Arc-Fitting Script
Status: Active
Start Date: 2014-08-01
End Date: ?


Maths

Multitudinous maths coming soon.

Progress

Week of 2014-08-18

Made a final push to get the script working. It now successfully produces a polyline through one iteration of arcfitting with no spline splitting. Some curves are approximated pretty well, but particularly eccentric ellipses become lozenges, which is not desirable.

Week of 2014-08-25

Stubbed out guards (They all return false for now.) Figured at this point I should just convert it to coffeescript, which is morally and technically superior to javascript, and punt it over to github instead of dropbox.