POV-Ray : Newsgroups : povray.advanced-users : Create spline : Re: Create spline Server Time
3 Jul 2024 04:35:56 EDT (-0400)
  Re: Create spline  
From: Kenneth
Date: 2 Mar 2009 18:05:00
Message: <web.49ac65a5db4d2f97f50167bc0@news.povray.org>
"twister" <twi### [at] o2pl> wrote:
> Hi all,
>
> Is there any possibility to write a #macro that returns spline by value? I have
> made such macro but I have to pass a parameter to the macro that will be a
> place for spline. I excpect something like that:
>
> #declare new_spline = createSpline(myArray);
>
> Now I have to do it like that:
>
> #declare new_spline = 0;
> createSpline(myArr, new_spline)
> //now I have new_spline initialized
>

Could it perhaps be a problem with how you are initially setting up or loading
values into myArray? An array[] starts at location 0, not 1.  Just a thought.

Ken W.


Post a reply to this message

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