Io - STL
API reference — the STL doors of @huukhanhnguyen/io: readers, writers and their option / result types, all on this page.
import { readStl, writeStl } from '@huukhanhnguyen/io'Source: ./stl. See all formats or the Guide.
API reference
Signatures are generated from the live package .d.ts - not hand-written.
readStl
function
readStl(data: Uint8Array | string): stringreadStlFacets
function
readStlFacets(data: Uint8Array | string): StlFacet[]tessellationToStl
function
tessellationToStl(entities: Entity[], options?: StlOptions): Uint8ArraytessellationToStlAscii
function
tessellationToStlAscii(entities: Entity[], options?: StlOptions): stringwriteStl
function
writeStl(handle: string): Uint8ArraywriteStlAscii
function
writeStlAscii(handle: string): string