Creates a mesh from a triangle soup.
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 a float32 triangle soup with primitive tracking IDs
fun createMeshFromTrianglesF32WithID(
triangles: [triangle3],
arithmetic: ExactArithmetic,
surfaceID: uint32_t,
meshType: MeshType = Solid,
lifetime: Lifetime = CopyImmediately,
) -> Mesh