Io - UsdRead
API reference — the UsdRead doors of @huukhanhnguyen/io: readers, writers and their option / result types, all on this page.
import { convertDirectionFromUsd, convertPositionFromUsd } from '@huukhanhnguyen/io'Source: ./usdRead. See all formats or the Guide.
API reference
Signatures are generated from the live package .d.ts - not hand-written.
convertDirectionFromUsd
function
convertDirectionFromUsd(x: number, y: number, z: number): PointconvertPositionFromUsd
function
convertPositionFromUsd(x: number, y: number, z: number): PointextractDefs
function
extractDefs(text: string, typeFilter?: string): DefBlock[]isZip
function
isZip(bytes: Uint8Array): booleanparseVec3Array
function
parseVec3Array(src: string): Array<[number, number, number]>readUsd
function
readUsd(input: string | ArrayBuffer | Uint8Array, options?: { fileName?: string; }): Promise<UsdStage>readUsda
function
readUsda(text: string, packageFiles?: Map<string, Uint8Array>): UsdStageunitRgbToHex
function
unitRgbToHex(r: number, g: number, b: number): stringunzipUsdz
function
unzipUsdz(bytes: Uint8Array): Promise<Map<string, Uint8Array>>