POV-Ray : Newsgroups : povray.beta-test : cannot copy array with spline : Re: cannot copy array with spline Server Time
29 Jul 2024 20:22:38 EDT (-0400)
  Re: cannot copy array with spline  
From: Gleb
Date: 11 Mar 2002 09:32:01
Message: <3c8cbfe1@news.povray.org>
"W?odzimierz ABX Skiba" <abx### [at] babilonorg> wrote in message
news:tp5p8uoemqon1um6i4j75nc09ho61364su@4ax.com...
> POV 3.5 b 12 icl on WinNT Sp 6 PII 233 with 128 MB
> Supposing parser can be confused about spline I changed this to:
>   #local A=array[1]{spline{MySpline}};
> And above is parsed ok. But when I try to copy whole array in next step:
>   #local B=A;
> then again I have parse error: "Cannot copy identifier".
> Any confirmation ?

same,
but it works as expected this way, however:

#local MySpline=spline{natural_spline 0 x 1 y 2 z 3 0}
  #local A=array[1]{spline{MySpline}};
  #local B=(A[0](0));
//B=<1,0,0>

spline call in #local/#declare only works OK in parentheses, and it seems
that it is not mentioned in docs.

atb,
Gleb


Post a reply to this message

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