|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |