POV-Ray : Newsgroups : povray.newusers : "Spline must have at least one entry" : Re: "Spline must have at least one entry" Server Time
28 Jul 2024 22:32:03 EDT (-0400)
  Re: "Spline must have at least one entry"  
From: Leroy
Date: 7 Jul 2007 01:50:45
Message: <468F28B3.1090904@joplin.com>
Veggiet wrote:
> This doesn't(work):
> #declare myspline = spline { bezier_spline  <<<<< THIS IS WRONG <<<<<

SPLINE USES ONLY THESE TYPES:
   linear_spline | quadratic_spline | cubic_spline | natural_spline

Spline uses some different types than prism or sphere_sweep



> #macro an8_position_spline(vector_array)
> //vector_array should be a two dimensional vector array [n][4] or [0 to n-1, 
> 0 - 3]
> //the array takes the form of an8's "pointkey"
> // <frame,frame,frame>, <location_vector>, <curve_point1>, <curve_point2>
> // the first vector in each set could be modified to include the type of the 
> point.
>         #if (dimensions(vector_array)>1)
>         #debug str(dimension_size(vector_array, 1)-1,3,1)

Lets look at:
>         spline { natural_spline <<OK

>                 vector_array[0][0].x, This is where I get the error

  I've played around this for a while and found that SPLINE just doesn't 
like
a two dimention array used this way.

         if you use: #declare  A=vector_array[0][0].x;
          then use A as the float it'll work

Have Fun!


Post a reply to this message

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