public class MeshLoader extends AsciiFileLoader<Mesh>
Mesh from
OBJ Files.AsciiFileLoader| Modifier and Type | Field and Description |
|---|---|
protected OBJParser |
objParser
OBJParser used to read in the OBJ File
and convert it into a
Mesh |
| Constructor and Description |
|---|
MeshLoader()
Constructs a new MeshLoader and the
OBJParser |
| Modifier and Type | Method and Description |
|---|---|
Mesh |
get()
This should used the information, generated during
loading and construct an Object.
|
LineBasedParser |
getPreProcessor()
The preprocessor is used during reading.
|
void |
load(String name,
String file)
If the
OBJParser
has not been called as LineBasedParser
during loading (because of caching). |
getObjectpublic MeshLoader()
OBJParserpublic void load(String name, String file) throws LoadingException
OBJParser
has not been called as LineBasedParser
during loading (because of caching). The file gets split by line breaks and the Parser runs over the array.
This performs any type of loading and parsing.
This should load the resource, but should not constructed it,
just loading/parsing and preparations to create the objectname - The name of the original filefile - The input fileLoadingException - when the loading failspublic LineBasedParser getPreProcessor()
LineBasedParser
will get called. (When reading from cache for example, no PreProcessor is getting called).getPreProcessor in class AsciiFileLoader<Mesh>Copyright © 2014. All rights reserved.