ObjParser class
Parser for Wavefront .obj files.
Constructors
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< materialLib = const {}}) → Future<String, ObjMaterial> >List< Face3D> > -
Creates a List of Face3D for given obj
data
andmaterialLib
. -
parseLines(
List< String> lines, {Map<String, Map< materialLib = const {}}) → Future<String, ObjMaterial> >List< Face3D> > -
Creates a List of Face3D for given obj
lines
andmaterialLib
. -
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