Skip to main content

parse

Function parse 

Source
pub fn parse(format: Format, bytes: &[u8]) -> Result<MeshData>
Expand description

Parses a whole file. The result has at least one triangle, finite positions and every index below the vertex count.

ยงErrors

When the bytes are not a valid file of format, or memory runs out.