• Advertisement
Sign in to follow this  

3D How to clip off vertices from a ID3DXMesh?

Recommended Posts

There are some unwanted vertexes on my mesh that I want to get rid of. If I just remove them from the vertex buffer, the index buffer is no longer correct. If I remove the indexes, the mesh is still not correct. How do I clip off the vertexes on my mesh that I don't want.
Direct3D 9
C++
thanks
Jack

Share this post


Link to post
Share on other sites
Advertisement

Well, I assume you would have to recalculate the vertex and index buffers.

The best way I can see is to regenerate triangles from the original vertex and index buffers, remove the unwanted vertices/tris and then rebuild both buffers.

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  

  • Advertisement