Skip to content
Shapemetry

Io - glTF

API reference — the glTF doors of @huukhanhnguyen/io: readers, writers and their option / result types, all on this page.

import { tessellationToGlb, tessellationToGltfZip } from '@huukhanhnguyen/io'

Source: ./gltfScene. See all formats or the Guide.

API reference

Signatures are generated from the live package .d.ts - not hand-written.

tessellationToGlb

function

tessellationToGlb(entities: Entity[], options?: GltfOptions): Uint8Array

tessellationToGltfZip

function

tessellationToGltfZip(entities: Entity[], options?: GltfOptions): Uint8Array

variantsFromMaterialOptions

function

variantsFromMaterialOptions(options: Array<{ name: string; material: string; } | { name: string; materials: Record<string, string>; }>, baseMaterial?: string): GltfMaterialVariant[]
Last updated: 📖 1 min readEdit on GitHub