POV-Ray : Newsgroups : povray.beta-test : spline in, out array bug : spline in, out array bug Server Time
29 Jul 2021 21:40:28 EDT (-0400)
  spline in, out array bug  
From: ingo
Date: 15 Jul 2021 05:54:59
Message: <XnsAD687938A665Aseed7@news.povray.org>
In the scene below is spline is defined and then put into an array. When 
it is pulled out of the array it always is a linear spline, instead of 
the original 'curvy' spline. This used not to be the case as one of the 
meshmaker macro's depends on doing this since 3.5.

I cannot trace back where this behaviour originated as I only have 3.8 
alpha's and beta's here and all show this behaviour. (running win10) 


---%<------%<------%<---
#version 3.8;

global_settings {assumed_gamma 1.0}
camera {location <0,3.5,-12> look_at <0,1.5,0> angle 40}
light_source {<500,500,-500> rgb <0.8,0.9,1>}

#declare A1=spline {
   cubic_spline
   -0.5, < 1,-1, 0>
    0.0, < 1, 0, 0>
    0.5, < 2, 1, 0>
    1.0, < 1, 2, 0>
    1.5, < 1, 3, 0>
}

#declare An=array[1]{
   spline{A1},
}

#declare M=500;
union {
  #declare Spl=spline{An[0]};
  #for(I,0,50)
   sphere {Spl(I/50), 0.04 no_shadow pigment {rgb 1}}
  #end
}
---%<------%<------%<---


-- 
https://ingoogni.nl


Post a reply to this message

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