Triangulated mesh from meshShape().
Optionaloptions: GltfExportOptionsOptional material assignments.
An ArrayBuffer containing the complete GLB binary.
const mesh = meshShape(solid);
const glbBuffer = exportGlb(mesh);
const blob = new Blob([glbBuffer], { type: 'model/gltf-binary' });
exportGltf for the JSON variant.
Export a ShapeMesh to a
.glbbinary (ArrayBuffer).GLB packs the JSON header and binary buffer into a single file, which is more efficient for network transfer than base64-encoded glTF.