UNPKG

geom-parse-stl

Version:

Parse a STL (StereoLithography) ASCII string, ArrayBuffer or ArrayBuffer with ASCII data, and return a simplicial complex.

13 lines (12 loc) 246 B
/** * Geometry definition. */ export type SimplicialComplex = { positions: Float32Array; faceNormals: Float32Array; cells: (Uint8Array | Uint16Array | Uint32Array); /** * The STL "solid" name. */ name?: string; };