Triangle and vertex commands.

Blitz3D Forums/Blitz3D Programming/Triangle and vertex commands.

Clarks(Posted 2004) [#1]
How come there are commands to add vertices and triangles to a surface, but there are no commands to delete them individually?


Klaas(Posted 2004) [#2]
because they are pure linear lists and there cant be a gaps in this i think.


N(Posted 2004) [#3]
It's not hard to write procedures to do this (to pop a vertex from the stack of vertices and then reduce the indices of all triangles that had references to indices above the and if they had references to the removed vertex, delete the triangle).

I had these procedures in my GL engine at one point (used my stack functions to push/pop the data), so I know that it's not hard to do.