POV-Ray : Newsgroups : povray.unofficial.patches : error: No triangles in triangle mesh. Server Time
1 Nov 2024 03:16:10 EDT (-0400)
  error: No triangles in triangle mesh. (Message 1 to 5 of 5)  
From: Kari Kivisalo
Subject: error: No triangles in triangle mesh.
Date: 1 Aug 2001 18:28:28
Message: <3B688330.E1BE87A3@pp.htv.fi>
PlantStudio2 -> LWO -> Rhino 1.1 ->

mesh{
.
.
.
  smooth_triangle{...}
} <-----ERROR

plant_4.inc:2145: error: No triangles in triangle mesh.

The plant is in 5 inc files 1 mesh per file and 2 of 5 generate this
error. Visual inspection didn't reveal any obvious errors. Same error
in 3.1g too. Suggestions?


_____________
Kari Kivisalo


Post a reply to this message

From: Ken
Subject: Re: error: No triangles in triangle mesh.
Date: 1 Aug 2001 22:33:05
Message: <3B68BC36.B1D1470@pacbell.net>
Kari Kivisalo wrote:
> 
> PlantStudio2 -> LWO -> Rhino 1.1 ->
> 
> mesh{
> .
> .
> .
>   smooth_triangle{...}
> } <-----ERROR
> 
> plant_4.inc:2145: error: No triangles in triangle mesh.
> 
> The plant is in 5 inc files 1 mesh per file and 2 of 5 generate this
> error. Visual inspection didn't reveal any obvious errors. Same error
> in 3.1g too. Suggestions?

I've seen this happen when the mesh only contains degenerate triangles
from the conversion process. I know of no way of fixing it but you might
try a "union{}" wrapper rather than a "mesh{}" to see if the model will
render. If you do have a lot of degenerate triangles you will get 100's
of warnings if you use the union{}.

-- 
Ken Tyler


Post a reply to this message

From: Warp
Subject: Re: error: No triangles in triangle mesh.
Date: 2 Aug 2001 05:57:18
Message: <3b6923fd@news.povray.org>
If at all possible, try converting to pov with higher accuracy (ie. more
decimals). If the triangles are too small and the converter outputs too
few decimals per number, it might be that all triangles get degenerate.

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Kari Kivisalo
Subject: Re: error: No triangles in triangle mesh.
Date: 2 Aug 2001 06:25:00
Message: <3B692B21.1C883034@pp.htv.fi>
Ken wrote:
>
> If you do have a lot of degenerate triangles you will get 100's
> of warnings if you use the union{}.

That was it. Now I know not to normalise the object scale to 1
in Rhino before exporting. Thanks. 

_____________
Kari Kivisalo


Post a reply to this message

From: Kari Kivisalo
Subject: Re: error: No triangles in triangle mesh.
Date: 2 Aug 2001 06:38:59
Message: <3B692E67.1C548895@pp.htv.fi>
Warp wrote:
> 
>   If at all possible, try converting to pov with higher accuracy (ie. more
> decimals).

There seems to be 6 digits in all the numbers. I will have to play with the
settings both in PlantStudio and Rhino.


_____________
Kari Kivisalo


Post a reply to this message

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