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