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:30:42 EDT (-0400)
  Re: POVEarth: Tristan da Cunha: gaps between mesh2 triangles  
From: Thomas de Groot
Date: 1 Jul 2013 07:19:33
Message: <51d165c5$1@news.povray.org>

> I think they should, as this is the code for the mesh2:
>
> #declare Earth_Slice=
> mesh2
> {
>    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.

Poseray is free indeed and it is worth a try. If it does not solve the 
issue, then other solutions have to be found. In Poseray, the tolerance 
for welding vertices can be adapted. Start with the default; if 
necessary increase the value gradually.

Thomas


Post a reply to this message

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