POV-Ray : Newsgroups : povray.binaries.images : Am I just too stupid for programming?!? : Re: Am I just too stupid for programming?!? Server Time
31 Jul 2024 20:12:25 EDT (-0400)
  Re: Am I just too stupid for programming?!?  
From: clipka
Date: 20 Apr 2009 05:50:01
Message: <web.49ec44d439d56e6b1a1b9caf0@news.povray.org>
=?ISO-8859-1?Q?J=F6rg_=27Yadgar=27_Bleimann?= <yaz### [at] gmxde> wrote:
> Now I'm rid of the clippings... but then, I noticed an ugly gap in
> Phobos' surface (see attachment).

No, I don't see attachment :P

> 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

With a running from 0 to 398, this should be 399*2 = 798 (because you use 399
distinctive values for a)...

>      #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>,

.... and there should be some modulus operations in the vector building
statements, so wherever you have b+1, you should really have mod(b+1,800).

>          #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)!!!

POV-Ray expects less vectors in the face_indices block than you supplied.


Post a reply to this message

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