Mesh::CreateFromIndexedTrianglesF32WithID

Constructs a mesh from indexed float32 triangles with primitive tracking IDs

Creates a mesh from a indexed triangle list.

The provided surfaceID is used to set up primitive tracking via SurfaceBuilder::TrackID(surfaceID).

Note:
the optional meshType argument allows choosing between some preset types. For full nuance, go via SurfaceBuilder and MeshBuilder.

Signature

class Context:
    // Constructs a mesh from indexed float32 triangles with primitive tracking IDs
    fun createMeshFromIndexedTrianglesF32WithID(
        positions: [pos3],
        triangles: [idxtri],
        arithmetic: ExactArithmetic,
        surfaceID: uint32_t,
        meshType: MeshType = Solid,
        lifetime: Lifetime = CopyImmediately,
    ) -> Mesh