POV-Ray : Newsgroups : povray.beta-test : can't create function{spline{}} : can't create function{spline{}} Server Time
29 Jul 2024 10:18:59 EDT (-0400)
  can't create function{spline{}}  
From:
Date: 20 May 2002 04:32:46
Message: <h1dheusbdk95qsegakbrqieki4s60gf64k@4ax.com>
POV 3.5 RC5 icl on WinNT Sp 6 PII 233 with 128 MB

Following code not works with RC5. It worked with RC4.

#macro Time_To_Length_Converter(Spline,Min,Max,Accuracy)
  #local Conversion=function{spline{
    #local Last=Spline(Min);
    #local Length=0;
    #local C=Min;
    #while (C<=Max)
      #local C=min(C,Max);
      #local Point=Spline(C);
      #local Length=Length+vlength(Point-Last);
      C , Length
      #local C=C+Accuracy;
    #end
  }};
#end

#local S=spline{-1 x 0 y 1 z 2 0};
Time_To_Length_Converter(S,0,1,.001)

ABX


Post a reply to this message

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