That is if one triangle strip can "describe" the triangles of the model. It might take 
more than one strip?

Sean


> -----Original Message-----
> From: White Morph [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 21, 2002 12:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] triangle number
> 
> 
> On Wed, 21 Aug 2002 11:32:35 +0200, David Bourgais 
> <[EMAIL PROTECTED]> wrote:
> 
> David,
> 
> One thought:
> 
> Have "STRIPIFY" flag set when you construct Objectfile, so 
> you have stripified triangles. Use the 
> getStripVertexCounts(int[] stripVertexCounts) function to get 
> the number of vertex counts for each strip.
> 
> If you have the number of vertex for the strip, then you know 
> the number of triangles, the relationship is like this:  
> noTriangles = (noVertices - 3) + 1,  because you have 3 first 
> vertices compose a triangle and then for each each triangle 
> you need just one new vertex.
> 
> Add all noTriangles for all strips, then you can get the 
> total number of triangles.
> 
> I didn't try this, but I believe it should work.
> 
> white
> 
> >Hi
> >
> >This is a very short question.
> >By loading an obj file, how do you determine the number of 
> triangles of
> >the object ?
> >
> >Thanks for the answer.
> >
> >David Bourgais
> >
> > 
> ==============================================================
> ============
> >To unsubscribe, send email to [EMAIL PROTECTED] and 
> include in the body
> >of the message "signoff JAVA3D-INTEREST".  For general help, 
> send email to
> >[EMAIL PROTECTED] and include in the body of the message "help".
> 
> ==============================================================
> =============
> To unsubscribe, send email to [EMAIL PROTECTED] and 
> include in the body
> of the message "signoff JAVA3D-INTEREST".  For general help, 
> send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
> 

==========================================================================To 
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to