Sign in to follow this  
FireSoul

How do I get total Vertices from a mesh????

Recommended Posts

FireSoul    114
Hi, i would like to know how to get the total number of vertices within a particular mesh. Is there a specific function for this or do i have to access the vertex info? Thanks.

Share this post


Link to post
Share on other sites
Armadon    1091
Hi the FireSoul,
Depending on if you use Managed DirectX or DirectX

[The Methods/Functions]
Native DirectX
ID3DXMesh::GetNumVertices Method : Retrieves the number of vertices in the mesh.
Managed DirectX
BaseMesh.NumberVertices Property : Retrieves the number of vertices in a mesh.

If you have any more questions please don't hestitate to ask.

Share this post


Link to post
Share on other sites
FireSoul    114
Cheers!, i just thought it would be easier to ask here than to go searching for half an hour :).

Thanks again.

O yea, and its just normal direct x ( not managed).

Share this post


Link to post
Share on other sites
kovacsp    306
hi,

you don't need half an hour, just open the SDK docs at ID3DXMesh. I did this right now :)
GetFVF if probably what you need now.

kp

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this