POV-Ray : Newsgroups : povray.general : Error: No triangle in mesh. Server Time
26 Nov 2024 07:24:54 EST (-0500)
  Error: No triangle in mesh. (Message 1 to 4 of 4)  
From: CAD-Andi
Subject: Error: No triangle in mesh.
Date: 15 Apr 2011 16:25:01
Message: <web.4da8a8a55c17c6fdbf952ed30@news.povray.org>
Hi!

The Short: Is there a way to make povray simply ignore meshes that don't contain
triangles instead of stopping with an error?

The Long:
I frequently use converted 3d data in from of meshes in povray. Somehow large
files with tons of meshes containing triangles. Every time I end up with a
couple of meshes that generate the error: "No triangle in mesh" and I have to
manually find the mesh and erase it. Worst case so far I had to hunt down about
20 of these in one file. I think the problem is the original data that sometimes
has smaller artefacts then my ouput resolution of the wrl file I'm creating for
conversion to keep the file size resonable. So finally here is my question: Is
there some way how povray could simply ignore the meshes that don't contain
triangles?

I find myself doing this manual removal over and over and over again. Would be
cool if someone has an idea how I could streamline this process.

Thanks!

Andi


Post a reply to this message

From: CAD-Andi
Subject: Re: Error: No triangle in mesh.
Date: 25 Apr 2011 18:40:01
Message: <web.4db5f79ce973f8efb642fbb20@news.povray.org>
I finally stumbled across this thread:
http://news.povray.org/cjameshuff-174262.11015310012005%40news.povray.org.
Unfortunately there was also no answer to the question besides that it seems to
be some sort of mis conduct to feed povray junk (degenerated triangles). Still
it would be cool if I could come up with some sort of exception catch that would
simply ignore meshes with invalid content.
If it's simply not possible I'll probably have to write a awk script that checks
the validity of the triangles and cleans it up before I feed it to povray so
that it does not get an upset stomach. Hmm I wished there was a more simple way.
.... :-(


Post a reply to this message

From: Thomas de Groot
Subject: Re: Error: No triangle in mesh.
Date: 28 Apr 2011 03:22:25
Message: <4db915b1@news.povray.org>
Are you using Poseray for the conversion? If you do, and before you convert 
to POV-Ray meshes, it helps to work on the input mesh by recalculating the 
normals, weld the vertices, remove orphan vertices, etc.... You can do that 
there in the Groups section of the program.

Hope this helps.

Thomas


Post a reply to this message

From: CAD-Andi
Subject: Re: Error: No triangle in mesh.
Date: 29 Apr 2011 16:30:01
Message: <web.4dbb1f4ee973f8efbf952ed30@news.povray.org>
"Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote:
> Are you using Poseray for the conversion? If you do, and before you convert
> to POV-Ray meshes, it helps to work on the input mesh by recalculating the
> normals, weld the vertices, remove orphan vertices, etc.... You can do that
> there in the Groups section of the program.
>
> Hope this helps.
>
> Thomas

Thanks for your answer Thomas!
I'm using Paul Thiessen's vrml2pov converter because im using it from the
command line with some perl scripts. Using Poseray to get rid of orphan vertices
and for the suggested cleanup is a good idea. I'll do that if I run into some
really bad geometry. Thanks again!

Andi


Post a reply to this message

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