Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #439: GetVertexCount returns incorrect value
Product:
TV3D SDK 6.5
Language:
Not Specified
Current State:
New
Resolution:
Unconfirmed
Created On:
June 29th, 2005
Last Modified:
June 29th, 2005
Reported By:
Hypnotron
Verified with LoadX and SetGeometry. The vertex count reported is approximately half the number of triangles. Obviously for triangle lists the resulting number reported should be triCount * 3.

For trianglestrips the GetVertexCount returns the same number as there were calls to AddVertex() which is also obviously wrong.

Comments:

Posted by Hypnotron on June 29th, 2005 at 5:21 AM
umm... im losing my mind. For the addVertex() i reversed what I meant to say. The vertexCount is correct but the triangle count equals the number of vertices.

Further, for the former case I verified its returning the number of UNIQUE vertices and so this is probably by design? Interestingly, knowing this can show whether tv3d is using vertex buffers on the mesh or not.
Posted by Hypnotron on June 29th, 2005 at 5:28 AM
*sigh* just to clairfy. Addvertex _with_ TriangleStrip primitive type its reporting number of triangles equal to the number of vertices. So this is the only bug (forget the rest of this bug report :))