exportToGlb function

Future<ExportReport> exportToGlb(
  1. ModelDocument document, {
  2. String name = 'model',
})

Writes document as glTF, reads the result back and compares — a binary format, so the round trip is held to a tolerance of 0.0.

Implementation

Future<ExportReport> exportToGlb(
  ModelDocument document, {
  String name = 'model',
}) => exportChecked(document, const GlbModelWriter(), name: name);