
simGetShapeMesh
Retrieves a shape's mesh information
C++ synopsis
int simGetShapeMesh(int shapeHandle, double** vertices, int* verticesSize, int** indices,
int* indicesSize, double** normals)
Arguments
- shapeHandle: handle of the shape
- vertices: receives the vertices. The user is in charge of destroying the array with simReleaseBuffer. See simExportMesh for a usage example.
- verticesSize: receives the size of the vertices array. See simExportMesh for a usage example.
- indices: receives the indices. The user is in charge of destroying the array with simReleaseBuffer. See simExportMesh for a usage example.
- indicesSize: receives the size of the indice array. See simExportMesh for a usage example.
- normals: receives the normals (3 times the size of indicesSize). The user is in charge of destroying the array with simReleaseBuffer. Can be nullptr.
Return
- -1 if operation was not successful
See also:
|