Hello andy,

i have no idea how to do this!
Can you help me again?
 
thanks
rob

-----Ursprüngliche Nachricht-----
Von: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]
Im Auftrag von andy
Gesendet: Dienstag, 8. Juni 2004 05:11
An: [EMAIL PROTECTED]
Betreff: Re: [JAVA3D] loader obj number of triangles

There are v, vt, vn, and f.  f is a face, which may contains more than 1
triangle.  But all of the f combined into three list, vertex index
list(V/vt/vn), vertex texture list(v/VT/vn), and vertex normal
list(v/vt/VN).  You just need to create that vertex index list, then use
vertex index list divided by 3, and you will get the number of triangle.

Have fun with obj.

Andy

Robert O wrote:

>hello,
>
>i have a problem with the obj loader from java3d.
>i am getting everything worked (rotation,zoom,...),
>but i have no idea how to determine
>the total number of triangles in the obj file.
>
>can anybody help me and give me some javacode?
>
>thx
>rob
>
>===========================================================================
>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