Regular API function
simCreateMeshShape / sim.createMeshShape
Description
|
Creates a mesh shape. See also sim.createPrimitiveShape, sim.createHeightfieldShape and sim.getShapeMesh, and see sim.importMesh for a usage example.
|
C/C++ synopsis
|
simInt simCreateMeshShape(simInt options,simFloat shadingAngle,const simFloat* vertices,simInt verticesSize,const simInt* indices,simInt indicesSize,simFloat* 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) |
|