POV-Ray : Newsgroups : povray.general : Degenerate triangles. Server Time
29 Oct 2024 23:56:11 EDT (-0400)
  Degenerate triangles. (Message 1 to 4 of 4)  
From: Simen Kvaal
Subject: Degenerate triangles.
Date: 4 Jun 2000 07:28:23
Message: <393a3d57$1@news.povray.org>
Hi!

Short:
I wondered wether anyone know how to quickly delete degenerate triangles [I
assume that means triangles with two or more coincident vertices.] from an
.inc-file?

Long:
I've made a model in LightWave and converted it with 3d23d into a fine union
{} of smooth_triangles for use with Povray. The trouble is, that it's
several degenerate triangles in the #include file. Well, the scene seems to
render fine, but it takes a few seconds more to parse the zillion triangles,
and I'd be more confident in my scene if the degenerate triangles were not
there. Of course, I could re-model the whole thing, but that wouldn't be
much fun, as I'm quite satisfied alredy.

Does Povray remove the degenerate triangles by itself, or are the triangles
actually allocated as objects in the scene?

Perhaps someone has made a small utility to remove those nasty triangles
from a scene-file?

TIA.

Regards,
Simen Kvaal.

--
----------------------------------------------------------------------------
---
Message sent by:
Simen Kvaal. (Student at Univesity of Oslo, Norway,
Faculty of mathematics and natural sciences.)

email: sim### [at] studentmatnatuiono
webpage: http://www.uio.no/~simenkv/


Post a reply to this message

From: Warp
Subject: Re: Degenerate triangles.
Date: 5 Jun 2000 05:57:05
Message: <393b7970@news.povray.org>
Simen Kvaal <sim### [at] studentmatnatuiono> wrote:
: I wondered wether anyone know how to quickly delete degenerate triangles [I
: assume that means triangles with two or more coincident vertices.] from an
: .inc-file?

  Using my triangle mesh compressor (you can output in povray format if you
don't want the pcm version).
  It can look for triangles with two or three vertices being the same point
and delete those triangles.

  Btw, I think that povray also considers degenerate those smooth triangles
which have normals pointing to different sides of the triangle. I have to
verify this and add it to the program.

: Does Povray remove the degenerate triangles by itself, or are the triangles
: actually allocated as objects in the scene?

  I think it ignores them (just warning about them).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Ken
Subject: Re: Degenerate triangles.
Date: 5 Jun 2000 12:19:15
Message: <393BD280.7D4E0D7@pacbell.net>
Warp wrote:

> : Does Povray remove the degenerate triangles by itself, or are the triangles
> : actually allocated as objects in the scene?
> 
>   I think it ignores them (just warning about them).

Actually in a union of triangles it does not remove them. If you
change the union to a mesh then it will remove them for you and
you will also avoid the degenerate triangle warnings.

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Simen Kvaal
Subject: Re: Degenerate triangles.
Date: 5 Jun 2000 17:33:39
Message: <393c1cb3@news.povray.org>
>Actually in a union of triangles it does not remove them. If you
>change the union to a mesh then it will remove them for you and
>you will also avoid the degenerate triangle warnings.
>


Thanks! I think I've got as much answer as I needed! :)

Simen. (very grateful)


Post a reply to this message

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