Skip to main content

Module stl

Module stl 

Source
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 rscadendsolid rscad).
write_stl_binary
Write binary STL: 80-byte header, u32 triangle 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]).