natiny_mesh_get_part_count

C
uint32_t natiny_mesh_get_part_count(NatinyMesh mesh);

Returns the number of mesh parts.

Parameters

Name Type Description
mesh NatinyMesh Mesh handle

Returns

Type Description
uint32_t Part count (0 if the handle is invalid)

Example

C
uint32_t count = natiny_mesh_get_part_count(mesh);

Notes

  • A part groups triangle primitives that share one source material. Part indexes are zero-based; generated shapes contain one part.