Function stl_io::read_stl [−][src]
pub fn read_stl<R>(read: &mut R) -> Result<IndexedMesh> where
R: Read + Seek,
Attempts to read either ascci or binary STL from std::io::Read.
let mut reader = ::std::io::Cursor::new( b"solid foobar facet normal 0.1 0.2 0.3 outer loop vertex 1 2 3 vertex 4 5 6e-15 vertex 7 8 9.87654321 endloop endfacet endsolid foobar".to_vec()); let mesh = stl_io::read_stl(&mut reader).unwrap();