CoppeliaGeometricRoutinesAPI <<
Previous Next >> kinematics
IGLPluginAPIreference
IGL Plugin API reference |
Wrapper for libigl |
simIGL.boolean
|
simIGL.boolean
Description
|
Compute several boolean operations on the meshes specified by vertices and (triangle) indices |
Lua synopsis |
mesh result=simIGL.boolean(mesh a, mesh b, int op)
|
Lua parameters |
a (mesh): first mesh
b (mesh): second mesh
|
Lua return values |
result (mesh): resulting mesh |
Python synopsis |
mesh result=simIGL.boolean(mesh a, mesh b, int op)
|
See also
|
|
|
Constants
Constants used in the various functions. Refer to each constant using enumName.constantName, i.e. simUI.curve_type.xy for xy constant in simUI.curve_type enum.
simIGL.boolean_op
union
intersection
difference
symmetric_difference
resolve
|
|
Data structures
Data structures are used to pass complex data around. Create data structures in Lua in the form of a map, e.g.: {line_size=3, add_to_legend=false, selectable=true}
mesh
Description
|
|
Fields |
vertices (table of float): vertices of the mesh (3 * n values)
indices (table of int): triangle indices of the mesh (3 * m indices, zero-based)
normals (table of float): per-vertex normals (3 * n values)
|
See also
|
|
|
|
, ,
, ,
CoppeliaGeometricRoutinesAPI <<
Previous Next >> kinematics