#include#include Mesh *mesh = ...; // get a pointer to a Mesh object DerivedMesh *derived_mesh = new DerivedMesh(mesh, CD_MASK_ALL); // create a DerivedMesh object with all custom data layers
int num_verts = derived_mesh->getNumVerts();
float *pos = derived_mesh->getVertPos(i); // get the position of the i-th vertexThis code gets the position of a vertex in a DerivedMesh object. Package library: Blender Python API