support rendering of nothing without error
added functions to remove vertices and triangles
added function to copyVertices
coding style