Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #446: Missing: Mesh.GetPrimitiveType(iGroup)
Product:
TV3D SDK 6.5
Language:
Not Specified
Current State:
Closed
Resolution:
Fixed
Created On:
July 1st, 2005
Last Modified:
December 18th, 2005
Reported By:
Hypnotron
PROBLEM:
There is no function for getting the primitive type per group. This makes it difficult to use GetVertex()to capture triangle data because you dont know if you are dealing with a list (every 3 vertices is a triangle) or a strip/fan (first 3 is triangle and every subsequent vertex represents the odd vertex of a new triangle)

EXPECTED:
1) Mesh.GetPrimitiveType(iGroupID)
2) v = Mesh.GetVertex(iVertexID, iGroup) as TV_SVERTEX

Comments:

Posted by SylvainTV on July 7th, 2005 at 3:23 PM
Well, as stated in the other bug report, PrimitiveType is only used for creation. The meshes in the engine are always index triangle lists.

However, there would be indeed a problem to reconstruct things from the info given by the TVMeshs, something is missing.

So i think i will add a function to returns the indices of each face.
Something like GetFaceIndices (int face, &i1,&i2,&i3 )

Thanks