Regular API function

simCreateMeshShape / sim.createMeshShape

Description Deprecated. Use sim.createShape instead
C/C++
synopsis
int simCreateMeshShape(int options,double shadingAngle,const double* vertices,int verticesSize,const int* indices,int indicesSize,double* reserved)
C/C++
parameters
options: Bit-coded: if bit0 is set (1), backfaces are culled. If bit1 is set (2), edges are visible
shadingAngle: the shading angle
vertices: an array of vertices
verticesSize: the size of the vertice array
indices: an array of indices
indicesSize: the size of the indice array
reserved: reserved for future extensions. Keep at nullptr.
C/C++
return value
-1 if operation was not successful, otherwise the handle of the newly created shape
Lua
synopsis
int objectHandle=sim.createMeshShape(int options,float shadingAngle,float[] vertices,int[] indices)
Lua
parameters
options: Bit-coded: if bit0 is set (1), backfaces are culled. If bit1 is set (2), edges are visible
shadingAngle: the shading angle
vertices: a table of vertices
indices: a table of indices
Lua
return values
Similar to the C-function counterpart
Python
synopsis
int objectHandle=sim.createMeshShape(int options,float shadingAngle,list vertices,list indices)