public class OBJParser extends Object implements Model, LineBasedParser
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasNormals |
protected boolean |
hasTexCoords |
protected ArrayList<OBJIndex> |
indices |
static org.slf4j.Logger |
LOGGER |
protected ArrayList<Vector3f> |
normal |
protected ArrayList<Vector3f> |
positions |
protected boolean |
run |
protected ArrayList<Vector2f> |
texCoord |
| Constructor and Description |
|---|
OBJParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasRun() |
String |
parse(String line)
Parses the line.
|
protected OBJIndex |
parseOBJIndex(String token) |
IndexedModel |
toIndexedModel() |
public static final org.slf4j.Logger LOGGER
protected boolean hasTexCoords
protected boolean hasNormals
protected boolean run
public String parse(String line) throws Exception
parse in interface LineBasedParserline - The line to loadExceptionpublic IndexedModel toIndexedModel()
toIndexedModel in interface Modelpublic boolean hasRun()
Copyright © 2014. All rights reserved.