Jump to content

Removing unused vertices


Dal
 Share

Recommended Posts

Does anyone know a way to remove unused vertices in a mesh without breaking the indices? I guess i need some kind of function that can delete vertices from an array and remap all the indices to the new array locations for the remaining vertices. Does something like that already exist?

Link to comment
Share on other sites

3 hours ago, adam said:

My first thought is:  Why do you need to do this?

For my terrain implementation... it creates the vertices for the whole terrain, then creates triangles only for the ones that are actually needed for the current LOD.
The theory is the verts will be set only once, and just the indices need to be updated, but it still seems to be too heavy so I want to try pushing only the currently used verts instead to see if that improves performance - but if I remove vertices from the array it will break the indices order.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...