Methods
parse(mtlText) → {Map.<string, ParsedMtlMaterial>}
Parses the MTL text into the material definitions.
Parameters:
| Name | Type | Description |
|---|---|---|
mtlText |
string | MTL file contents. |
- Source:
Throws:
-
When mtlText is not a string.
- Type
- TypeError
Returns:
- Map of parsed materials keyed by the material name.
- Type
- Map.<string, ParsedMtlMaterial>