Detailed Description
Mesh routines.
Definition in file rs_mesh.rsh.
Function Documentation
Returns an allocation containing index data or a null allocation if only the primitive is specified
- Parameters:
-
m | mesh to get data from |
index | index of the index allocation |
- Returns:
- allocation containing index data
Returns the primitive describing how a part of the mesh is rendered
- Parameters:
-
m | mesh to get data from |
index | index of the primitive |
- Returns:
- primitive describing how the mesh is rendered
Meshes could have multiple index sets, this function returns the number.
- Parameters:
-
- Returns:
- number of primitive groups in the mesh. This would include simple primitives as well as allocations containing index data
Returns an allocation that is part of the mesh and contains vertex data, e.g. positions, normals, texcoords
- Parameters:
-
m | mesh to get data from |
index | index of the vertex allocation |
- Returns:
- allocation containing vertex data
Returns the number of allocations in the mesh that contain vertex data
- Parameters:
-
- Returns:
- number of allocations in the mesh that contain vertex data