biarcs.ngc is a o-word library and demo file. It includes O-words I call "arcto", "splineto", and "arcfrom". "arcto" creates a single arc or line from the last position to the given location while satisfying the tangency condition. "splineto" creates a number of arcs which approximate a cublic spline. "arcfrom" sets the initial conditions (position and tangent) and is used at the beginning of a sequence of moves.
The method used in "splineto" is much simpler than the methods described in papers (N points at equal 't' spacing on the spline are connected by arcs) but it gives good results for as few as 8 points). The screenshot shows 4, 8, 16, and 32 points used, but it is virtually impossible to tell the difference between 8, 16 and 32 at this zoom level. However, with this simple method the tangent of the last arc in the approximation is not controlled and generally does not match the spline's true end tangent.
These aren't technically biarcs but I'm too lazy to figure out the proper name and rename the files.
Files currently attached to this page:
(originally posted on the AXIS blog)
Entry first conceived on 14 February 2007, 22:32 UTC, last modified on 15 January 2012, 3:46 UTC
Website Copyright © 2004-2021 Jeff Epler