POV-Ray : Newsgroups : povray.binaries.images : POVEarth: Tristan da Cunha: gaps between mesh2 triangles : Re: POVEarth: Tristan da Cunha: gaps between mesh2 triangles Server Time
29 Jul 2024 22:28:54 EDT (-0400)
  Re: POVEarth: Tristan da Cunha: gaps between mesh2 triangles  
From: scott
Date: 1 Jul 2013 08:20:39
Message: <51d17417$1@news.povray.org>
>>    vertex_vectors
>>    {
>>      xdim*ydim
>>      #declare row=0;
>>      #while (row<ydim)
>>        #declare col=0;
>>        #while (col<xdim)
>>          #declare clrvect=eval_pigment(map, <1/(xdim*2)+col/xdim,
>> 1-(1/(ydim*2)+row/ydim), 1>);
>
> I cannot read that ;-)
>
> Thinking a bit more about this, meshes with loose triangles at least
> have their vertices at the /same/ locations; here there seems to be a
> gap. Either, this is already present in the original DEMs, or the math
> above for the conversion has some errors... Difficult to say.

Even if it has errors it shouldn't introduce gaps as he is using 
face_indices to reference the vertices (all 6 triangles using that 
vertex will have exactly the same value, even if it is an incorrect value).


Post a reply to this message

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