/** * STLParser — Parse binary and ASCII STL files into surface triangle meshes. * * STL (Stereolithography) is the most common format for 3D printing and CAD export. * * Binary format: * - 80-byte header (ignored) * - 4-byte uint32: triangle count * - Per triangle (50 bytes): normal (3×f32) + 3 vertices (9×f32) + 2-byte attribute * * ASCII format: * - "solid " header * - Per facet: "facet normal ...", "outer loop", 3× "vertex x y z", "endloop", "endfacet" * - "endsolid" * * @see MeshImporter — pipes STL surface into AutoMesher.meshSurface() */ import type { SurfaceMesh } from '../AutoMesher'; /** * Parse an STL file (auto-detects binary vs ASCII). */ export declare function parseSTL(buffer: ArrayBuffer): SurfaceMesh; /** * Build a minimal binary STL buffer (for testing). */ export declare function buildSTL(triangles: [number, number, number][][]): ArrayBuffer; //# sourceMappingURL=STLParser.d.ts.map