POV-Ray : Newsgroups : povray.newusers : need some help ! : need some help ! Server Time
4 Jul 2024 14:29:36 EDT (-0400)
  need some help !  
From: kurtz le pirate
Date: 14 Nov 2010 06:05:23
Message: <kurtzlepirate-2E05A9.12053314112010@news.povray.org>
hi,

i get this error but i am unable to understand why.
everything seems good...


File Context (5 lines):
  #local a = 1/sqrt(2.0);
  #local i = 0;
  #while(i<6)
    p[i].x =
Parse Error: All #declares of float, vector, and color require 
semi-colon ';' at end if the language version is set to
 3.5 or higher. Either add the semi-colon or set the language version to 
3.1 or lower.


source code :
#macro CreateNSphere (iterationNumber)

  #local p = array[6];
  #local p[0] = < 0, 0, 1>;
  #local p[1] = < 0, 0,-1>;
  #local p[2] = <-1,-1, 0>;
  #local p[3] = < 1,-1, 0>;
  #local p[4] = < 1, 1, 0>;
  #local p[5] = <-1, 1, 0>;

  // --- Create the level 0 object
  #local a = 1/sqrt(2.0);
  #local i = 0;
  #while(i<6)
    p[i].x = a*p[i].x;
    p[i].y = a*p[i].y;
    #local i=i+1;
  #end
  
  #declare facettes[0] = triangle { p[0], p[3], p[4] };
  ...
  ...

and this macro is called with this line :

  #declare fCreated = CreateNSphere(0);


nothing too complicated :(((

thanks
-- 
klp


Post a reply to this message

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