Operation::ExportToTrianglesF32WithID

Exports a mesh operand to float32 triangles with primitive tracking IDs

Variant of Operation::ExportToTrianglesF32 with tracking IDs exported. Type of the TypedBlob is still BlobType::TrianglesF32 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::Triangles, ExportOption::VertexPositionF32 | ExportOption::PrimitiveID)

Signature

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