POV-Ray : Newsgroups : povray.beta-test : Filling in T values in splines : Re: Filling in T values in splines - update Server Time
30 Jul 2024 06:22:59 EDT (-0400)
  Re: Filling in T values in splines - update  
From: Warp
Date: 24 Feb 2002 14:55:59
Message: <3c79454e@news.povray.org>
Rune <run### [at] mobilixnetdk> wrote:
> #declare Spline =
> spline {
>    cubic_spline

>    SCP( 0.0, <0,1,2>)
>    SCP(   x, <1,5,0>)
>    SCP(   x, <4,1,0>)
>    SCP( 0.9, <0,2,1>)
>    SCP( 1.0, <0,0,1>)
>    SCP(   x, <6,5,4>)
>    SCP( 2.0, <4,3,2>)
>    Spline_Add_Points(MyArray,2.5,4.5)

>    Spline_End()
> }

  This is starting to be a lot closer to what I like. :)

  (How did you get rid of the need to specify the amount of points?)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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