POV-Ray : Newsgroups : povray.advanced-users : Lathe and sor splines question : Lathe and sor splines question Server Time
30 Jul 2024 04:17:43 EDT (-0400)
  Lathe and sor splines question  
From: Nieminen Juha
Date: 12 Mar 2000 08:00:15
Message: <38cb94de@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.