Deleting a polygon from a mesh

I want to remove an individual polygon/face or vertex from a mesh, programmatically.

I know how to extract vertex and index buffers and create a new mesh with them,

but i’ll need to rebuild the index list if I remove a full polygon (3 vertices) - which is where I’m getting confused…

thanks for any help.

ok i’ve managed to get what I want by just rebuilding the indices buffer (removing groups of 3 to remove individual faces),

however there are unused vertices in the vertex buffer now, ideally i should get rid of these to improve speed/memory, but at least i’ve got it working…

1 Like