Skip to main content

write_stl_binary

Function write_stl_binary 

Source
pub fn write_stl_binary(
    writer: &mut dyn Write,
    triangles: impl ExactSizeIterator<Item = StlTriangle>,
) -> Result<()>
Expand description

Write binary STL: 80-byte header, u32 triangle count, then per triangle the normal, three vertices, and a zero attribute word (all little-endian).