POV-Ray : Newsgroups : povray.unofficial.patches : Tesselation patch v. 0.1alpha : Re: Tesselation patch v. 0.1alpha Server Time
1 Sep 2024 18:20:25 EDT (-0400)
  Re: Tesselation patch v. 0.1alpha  
From: Jim Kress
Date: 17 Jan 2001 23:30:18
Message: <3a66715a$1@news.povray.org>
So, is it the existence of degenerate triangles that is the cause of the
'bug'?

Jim

"Nicolas Calimet" <pov### [at] freefr> wrote in message
news:3A661765.DE18EBAF@free.fr...
> Warp wrote:
> >
> > http://www.cs.tut.fi/~warp/TesselationPatch/
>
> Thanks ! Successfully compiled on Linux...
>
> Just some other testing you probably already did:
>
> With the Bug example you give on your site, there are a lot
> of degenerate triangles in the created mesh, although from your code
> it should not be. By degenerate here, I only mean "triangles with
> two or more identical vertex indices". Adding "offset 0.001" remove
> the bug and there are no more degenerate triangles.
> I don't have any degenerate triangles with the other working
> example scene given.
>
> I supect the problem is how you generate the mesh using the
> hashing function. I'm currently investigating that stuff.
>
> BTW, I added that to the example to get the degenerate
> triangles, thanks to your own patch ;-)
>
> //------------
> #declare m = tesselate{...}
>
> #local ntri = get_triangle_count(m);
> #local i=0;
>
> #while(i<ntri)
>   #local vert = get_vertex_indices(m,i);
>   #render concat(str(vert.x,0,0)," ",
>                  str(vert.y,0,0)," ",
>                  str(vert.z,0,0),"\n")
>   #local i=i+1;
> #end
>
>
> *** Nicolas Calimet
> *** http://pov4grasp.free.fr


Post a reply to this message

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