POV-Ray : Newsgroups : povray.beta-test : wrong interpolation at start of spline : wrong interpolation at start of spline Server Time
2 Nov 2024 17:19:32 EDT (-0400)
  wrong interpolation at start of spline  
From: ingo
Date: 24 Oct 2001 07:19:55
Message: <Xns9144879EE9E47seed7@povray.org>
From the scene below the expected result is a square, yet I get a 
thing like:
 ____
|    |
|  \ |
|   \|

 When the first point of the spline is omitted, the result is a square. 
I.M.O the first point should be of no influence when using a 
linear_spline.
 When using a quadratic or cubic spline something simmiliar happens, 
with the first point the shape is not closed. Without the first point 
the shape is closed, but not smooth at the point where it closes.

---%<------%<---
#version 3.5;
global_settings {assumed_gamma 1.0}
camera {
  location  <0.5,0.5,-2>
  look_at   <0.5,0.5, 0>
}

#declare Spl=spline{
   -0.25,<0,1,0>,
    0,   <0,0,0>,
    0.25,<1,0,0>,
    0.50,<1,1,0>,
    0.75,<0,1,0>,
    1,   <0,0,0>,
    1.25,<1,0,0>,
}

#declare I=0;
#declare N=100;
#while(I<=N)
   sphere{
      Spl(I/N, linear_spline),0.05
      pigment{rgb 1} 
      finish{ambient 1}
   }
   #declare I=I+1;
#end
---%<------%<---

PII 233MHz 192MB NT4 SP6 POV-Ray 3.5-b6

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

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