POV-Ray : Newsgroups : povray.advanced-users : Closing brace bug ? : Closing brace bug ? Server Time
2 Nov 2024 11:24:00 EDT (-0400)
  Closing brace bug ?  
From: Ken
Date: 7 Oct 1999 16:58:36
Message: <37FD096A.31723A5F@pacbell.net>
Rendering the following code as is issues a warning that there should be
at least two objects in a csg operation.  Ok I can live with that even
though it should work as is should it not ?
  Anyway the really weird part begins when we uncomment the extra closing
brace and Pov accepts it then renders the file. When did Pov start ignoring
extra closing braces ?


camera { location<0,0,-3> look_at 0}
light_source {<0,0,-300> rgb 1}

difference {
#declare A = 12;
#while (A<12)

sphere   {<0,0,0>, 1 pigment { rgb 1 }}
sphere   {<0,0,0>,.9 pigment { rgb 1 }}
cylinder { <-1.1,0, 0.0>,<1.0,0,0.0>,.1  rotate y*360/A pigment {rgb 1}}
cylinder { < 0.0,0,-1.1>,<0.0,0,1.1>,.1  rotate x*360/A pigment {rgb 1}}

// } // <------ uncomment this line

#declare A=A+1;
#end 
} // <--- leave this one alone


-- 
Ken Tyler
1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

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