Skip to main content

write_ascii_stl

Function write_ascii_stl 

Source
pub fn write_ascii_stl<T, I>(name: &str, facets: I) -> String
where T: Display, I: IntoIterator<Item = ([T; 3], [[T; 3]; 3])>,
Expand description

Write ASCII STL: solid {name}, one facet per (normal, corners) item, endsolid {name}. Values print with their own Display, so an f32 source keeps its shortest f32 text.