Operation::ExportToIndexedTrianglesF32WithID

Exports a mesh operand to indexed float32 triangles with primitive tracking IDs

Variant of Operation::ExportToIndexedTrianglesF32 with tracking IDs exported. Type of the TypedBlob is still BlobType::IndexedTrianglesF32 but DataSlot::PrimitiveIDs is available in TypedBlob::GetData.

Tracking is enabled with SurfaceBuilder::TrackID, SurfaceBuilder::TrackIDRaw, and SurfaceBuilder::TrackPrimitiveIDs.

Note:
see documentation of SurfaceBuilder::TrackID for descriptions of how the IDs work and how the flags are interpreted.
Note:
this function is useful to transfer input attributes to the output.
Note:
Equivalent to ExportMesh(mesh, ExportFormat::IndexedTriangles, ExportOption::VertexPositionF32 | ExportOption::PrimitiveID)

Signature

class Operation:
    // Exports a mesh operand to indexed float32 triangles with primitive tracking IDs
    fun exportToIndexedTrianglesF32WithID(
        mesh: MeshOperand,
    ) -> TypedBlob