Expand description
Shared STL framing: binary/ASCII writers over a backend-agnostic
triangle stream. Backends supply (unit normal, [v0, v1, v2]) triangles
from their own tessellation; the byte/text framing lives once here.
Functions§
- write_
stl_ ascii - Write ASCII STL (
solid rscad…endsolid rscad). - write_
stl_ binary - Write binary STL: 80-byte header,
u32triangle count, then per triangle the normal, three vertices, and a zero attribute word (all little-endian).
Type Aliases§
- StlTriangle
- One STL facet:
(unit normal, [v0, v1, v2]).