Expand description
Wavefront OBJ ASCII parser + serialiser.
Strictly the polygonal subset (vertex / face / line / grouping /
material directives). Free-form curves/surfaces and the .mod
binary form are intentionally not handled.
The grammar is line-oriented; whitespace-separated; # introduces
a comment to end of line. Continuation lines (trailing \\) are
supported by gluing the next line on before tokenisation.
Functions§
- parse_
obj - Parse an OBJ document (no MTL resolution).
- parse_
obj_ with_ resolver - Parse an OBJ document, calling
resolveonce permtllibentry to fetch the bytes of the named material library. Each library is parsed viaparse_mtland its materials merged into the resulting scene; references inusemtldirectives bind to those materials by name. - serialize_
obj - Serialise a
Scene3Dto OBJ format.