Skip to main content

parse_obj

Function parse_obj 

Source
pub fn parse_obj(text: &str) -> Result<Scene3D>
Expand description

Parse an OBJ document (no MTL resolution).

usemtl directives still create one Primitive per switch and the material name lands in Primitive::extras["obj:usemtl"] even with no actual Material constructed. Use parse_obj_with_resolver when companion MTL data is available.