Difference between revisions of "BezierSplineArcFittingScript"

From Hive13 Wiki
Jump to navigation Jump to search
m (Tried putting infobox below first text. Didn't do jack diddly. Reverted.)
(Github link! Progress update.)
Line 1: Line 1:
[[Category:ActiveProjects]]
+
[[Category:ActiveProjects]]{{Infobox Project  
{{Infobox Project  
 
 
|ProjectTitle=Bezier Spline Arc-Fitting Script
 
|ProjectTitle=Bezier Spline Arc-Fitting Script
 
|ProjectStatus=Active
 
|ProjectStatus=Active
 
|StartDate=2014-08-01
 
|StartDate=2014-08-01
 
|EndDate=?
 
|EndDate=?
}}
+
}}=== [https://github.com/joedski/arcfit-bezier-spline-qcad Github Repo] ===
  
A script, currently targeting QCAD, to convert a Bezier Spline exported from Illustrator into a Polyline containing line and arc segments.
+
A script, 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.
 
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.
Line 24: Line 23:
  
 
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.
 
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.
 +
 +
=== Week of 2014-09-01 ===
 +
 +
Rewrote in Coffeescript, made into Brunch project, added Lodash as a dep, refactored _v into V.js, a small underscore/lodash-esque to make working with QCAD's RVector class more natural looking.  [https://github.com/joedski/arcfit-bezier-spline-qcad Uploaded to Github].

Revision as of 10:31, 4 September 2014


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: ?

Github Repo

A script, 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

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.

Week of 2014-09-01

Rewrote in Coffeescript, made into Brunch project, added Lodash as a dep, refactored _v into V.js, a small underscore/lodash-esque to make working with QCAD's RVector class more natural looking. Uploaded to Github.