ObjParser class

Parser for Wavefront .obj files.

Constructors

ObjParser()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

loadFromFile(Uri objFilePath) Future<List<Face3D>>
Parses a Wavefront OBJ file from the given objFilePath.
loadFromResources(String objResourceName) Future<List<Face3D>>
Parses a Wavefront OBJ file from the given objResourceName.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String data, {Map<String, Map<String, ObjMaterial>> materialLib = const {}}) Future<List<Face3D>>
Creates a List of Face3D for given obj data and materialLib.
parseLines(List<String> lines, {Map<String, Map<String, ObjMaterial>> materialLib = const {}}) Future<List<Face3D>>
Creates a List of Face3D for given obj lines and materialLib.
parseMtlLib(String? materialData) Future<Map<String, ObjMaterial>?>
Gets map of materials from materialData (mtl file content).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

mtllib → const String
Material library tag.
newmtl → const String
Material tag.
usemtl → const String
Material usage tag.