|
|
The lathe object can use linear, quadratic, cubic and bezier splines. The
SOR object uses some unnamed spline type.
I have some questions.
Suppose that I want to draw (just in a plain 2D graphic window) a qudratic,
cubic or bezier spline given the control points.
Can someone tell me the algorithm used to calculate the curve for each type
of spline? Preferably I would like to get all the points that will form a
contiguous curve in the drawing bitmap (no gaps and no points drawn in the
same place) given the resolution of the drawing window, but also a less
perfect solution is ok.
Also I would like an algorithm to draw the spline curve used by the SOR
object, given the control points.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|