Skip to main content

import_stl

Function import_stl 

Source
pub fn import_stl(bytes: &[u8]) -> Result<Mesh, AssetError>
Expand description

Parse a .stl (auto-detects binary vs ASCII). Each STL triangle contributes 3 fresh vertices (no welding) — a faithful, lossless first cut; vertex de-duplication is a later optimisation.