POV-Ray : Newsgroups : povray.general : Sor / Lathe Discrepancy? (Image on binaries.images) : Sor / Lathe Discrepancy? (Image on binaries.images) Server Time
19 Nov 2024 09:40:07 EST (-0500)
  Sor / Lathe Discrepancy? (Image on binaries.images)  
From: Lieut Data
Date: 26 Mar 2002 15:44:15
Message: <3ca0dd9f$1@news.povray.org>
After reading through some of the source code for PovRay, I discovered that
(I think) Sor's and Lathe's use cubic splines to calculate their points. But
after rendering the following scene, where each lathe uses the same point
setup as each sor, I am confused.

What method does sor use to calculate splines? (Image on binaries.images)

 #declare myLathe = lathe {
   cubic_spline
   7,
   <0, -5>, //Control Point
   <.8, -.3>,
   <.2, 0>,
   <.3, .3>,
   <.5, .5>,
   <.2, .6>,
   <0, 5> //Control Point
   sturm
   pigment {color rgb<1, 0, 0>}
 }

 #declare mySor = sor {
   7,
   <0, -5>, //Control Point
   <.8, -.3>,
   <.2, 0>,
   <.3, .3>,
   <.5, .5>,
   <.2, .6>,
   <0, 5> //Control Point
   pigment {color rgb<1, 1, 1>}
   sturm
}

object {myLathe translate x*1}
object {mySor translate x*-1}

object {myLathe rotate x*-70 translate <1, 1.5, 3>}
object {mySor rotate x*-70 translate <-1, 1.5, 3>}


Post a reply to this message

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