Skip to content
Shapemetry

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

readStlFacets

function

readStlFacets(data: Uint8Array | string): StlFacet[]

tessellationToStl

function

tessellationToStl(entities: Entity[], options?: StlOptions): Uint8Array

tessellationToStlAscii

function

tessellationToStlAscii(entities: Entity[], options?: StlOptions): string

writeStl

function

writeStl(handle: string): Uint8Array

writeStlAscii

function

writeStlAscii(handle: string): string
Last updated: 📖 1 min readEdit on GitHub