public static class OBJModel.Parser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
groupList |
private IResourceManager |
manager |
OBJModel.MaterialLibrary |
materialLibrary |
private java.util.List<OBJModel.Normal> |
normals |
private ResourceLocation |
objFrom |
private java.io.BufferedReader |
objReader |
private java.io.InputStreamReader |
objStream |
private java.util.List<OBJModel.TextureCoordinate> |
texCoords |
private static java.util.Set<java.lang.String> |
unknownObjectCommands |
private java.util.List<OBJModel.Vertex> |
vertices |
private static java.util.regex.Pattern |
WHITE_SPACE |
Constructor and Description |
---|
Parser(IResource from,
IResourceManager manager) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getElements() |
OBJModel |
parse() |
private float[] |
parseFloats(java.lang.String[] data) |
private static final java.util.regex.Pattern WHITE_SPACE
private static java.util.Set<java.lang.String> unknownObjectCommands
public OBJModel.MaterialLibrary materialLibrary
private IResourceManager manager
private java.io.InputStreamReader objStream
private java.io.BufferedReader objReader
private ResourceLocation objFrom
private java.util.List<java.lang.String> groupList
private java.util.List<OBJModel.Vertex> vertices
private java.util.List<OBJModel.Normal> normals
private java.util.List<OBJModel.TextureCoordinate> texCoords
public Parser(IResource from, IResourceManager manager) throws java.io.IOException
java.io.IOException
public java.util.List<java.lang.String> getElements()
private float[] parseFloats(java.lang.String[] data)
public OBJModel parse() throws java.io.IOException
java.io.IOException