Regular API function

simCreatePrimitiveShape / sim.createPrimitiveShape

Description Creates a primitive shape. See also sim.createShape and sim.createHeightfieldShape
C/C++
synopsis
int simCreatePrimitiveShape(int primitiveType,const double* sizes,int options)
C/C++
parameters
primitiveType: the primitive type of the shape
sizes: 3 values indicating the size of the shape
options: Bit-coded: if bit0 is set (1), backfaces are culled. If bit1 is set (2), edges appear sharp. If bit2 is set (4), the cylinder has open ends
C/C++
return value
-1 if operation was not successful, otherwise the handle of the newly created shape
Lua
synopsis
int shapeHandle=sim.createPrimitiveShape(int primitiveType,float[3] sizes,int options=0)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Similar to the C-function counterpart
Python
synopsis
int shapeHandle=sim.createPrimitiveShape(int primitiveType,list sizes,int options=0)