Skip to content
Shapemetry

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): Point

convertPositionFromUsd

function

convertPositionFromUsd(x: number, y: number, z: number): Point

extractDefs

function

extractDefs(text: string, typeFilter?: string): DefBlock[]

isZip

function

isZip(bytes: Uint8Array): boolean

parseVec3Array

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>): UsdStage

unitRgbToHex

function

unitRgbToHex(r: number, g: number, b: number): string

unzipUsdz

function

unzipUsdz(bytes: Uint8Array): Promise<Map<string, Uint8Array>>
Last updated: 📖 1 min readEdit on GitHub