POV-Ray : Newsgroups : povray.binaries.images : Am I just too stupid for programming?!? : Am I just too stupid for programming?!? Server Time
31 Jul 2024 20:13:22 EDT (-0400)
  Am I just too stupid for programming?!?  
From: Jörg 'Yadgar' Bleimann
Date: 20 Apr 2009 05:33:02
Message: <49ec414e@news.povray.org>
High!

Now I'm rid of the clippings... but then, I noticed an ugly gap in 
Phobos' surface (see attachment). I thought this might be because of not 
having connected the ends of each stripe of mesh faces (corresponding to 
lines in the original map image), so I changed my code:

   face_indices
   {
     638398 // added (399-1)*2 = 796
     #declare a=0;
     #while (a<399)
       #declare b=0;
       #while (b<800) // runs now to 800 rather than 799
         <a*800+b, a*800+b+1, (a+1)*800+b>, // line 313
         #if (b=799 & a=398)
           <319999, 319200, 318400> // last triangle
         #else
           <(a+1)*800+b, (a+1)*800+b+1, a*800+b+1>,
         #end
         #declare b=b+1;
       #end
       #declare a=a+1;
     #end
   }

...but all I get is the error message

"Parse Error: No matching } in 'face_indices', < found instead" (in line 
313)!!!

See you in Khyberspace!

Yadgar


Post a reply to this message

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