Operation::ExportToTrianglesF32

Exports a mesh operand to a flat float32 triangle blob

Converts all primitives of all surfaces into triangles and stores the result in the returned TypedBlob with BlobType::TrianglesF32.

Note:
Currently, there is no guarantee that vertices on the same exact location are always represented as exactly the same float. Due to rounding, it might be off by up to 3 ULP.

See BlobType::TrianglesF32 for how the resulting bytes are interpreted.

Note:
Equivalent to ExportMesh(mesh, ExportFormat::Triangles, ExportOption::VertexPositionF32)

Signature

class Operation:
    // Exports a mesh operand to a flat float32 triangle blob
    fun exportToTrianglesF32(
        mesh: MeshOperand,
    ) -> TypedBlob