There are a number of functions for accessing the vertices and their properties:
getNumVertices()function returns the number of vertices.
getVertex( i )function returns the position of the vertex with index
setVertex( i, p )function sets the position of vertex
p. Note that this function can change the vertex but it cannot add a new vertex. So if
iis greater or equal to
mesh.getNumVertices(), you need to add a vertex (or vertices) using the
mesh.addVertex( p )function as described in the Using ofMesh section.
removeVertex( i )function deletes the vertex with index
i. Be very careful when using this function; after deleting a vertex, you should probably also delete the corresponding normal, color, ...