public interface ReadableObj
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getActivatedGroupNames(ObjFace face)
Returns an unmodifiable set containing the names of the groups that
are activated with the given face.
|
String |
getActivatedMaterialGroupName(ObjFace face)
Returns the name of the material group that is activated with the
given face.
|
ObjFace |
getFace(int index)
Returns the face with the given index.
|
ObjGroup |
getGroup(int index)
Returns the group with the given index.
|
ObjGroup |
getGroup(String name)
Returns the group with the given name, or
null if
there is no such group in this Obj. |
ObjGroup |
getMaterialGroup(int index)
Returns the material group with the given index.
|
ObjGroup |
getMaterialGroup(String name)
Returns the material group with the given name, or
null if
there is no such group in this Obj. |
List<String> |
getMtlFileNames()
Returns an unmodifiable list containing the names of the MTL file
that are associated with this OBJ, as they have been read from
the
mtllib line. |
FloatTuple |
getNormal(int index)
Returns the normal with the given index.
|
int |
getNumFaces()
Returns the number of faces in the Obj.
|
int |
getNumGroups()
Returns the number of groups in this Obj.
|
int |
getNumMaterialGroups()
Returns the number of material groups in this Obj.
|
int |
getNumNormals()
Returns the number of normals in the Obj.
|
int |
getNumTexCoords()
Returns the number of texture coordinates in the Obj.
|
int |
getNumVertices()
Returns the number of vertices in the Obj.
|
FloatTuple |
getTexCoord(int index)
Returns the texture coordinate with the given index.
|
FloatTuple |
getVertex(int index)
Returns the vertex with the given index.
|
int getNumVertices()
FloatTuple getVertex(int index)
index - The index of the vertexIndexOutOfBoundsException - If the index is negative or not
smaller than getNumVertices()int getNumTexCoords()
FloatTuple getTexCoord(int index)
index - The index of the texture coordinateIndexOutOfBoundsException - If the index is negative or not
smaller than getNumTexCoords()int getNumNormals()
FloatTuple getNormal(int index)
index - The index of the normalIndexOutOfBoundsException - If the index is negative or not
smaller than getNumNormals()int getNumFaces()
ObjFace getFace(int index)
index - The index of the face.IndexOutOfBoundsException - If the index is negative or not
smaller than getNumFaces()Set<String> getActivatedGroupNames(ObjFace face)
null will be returned.face - The faceString getActivatedMaterialGroupName(ObjFace face)
null
will be returned.face - The faceint getNumGroups()
ObjGroup getGroup(int index)
index - The index of the group.IndexOutOfBoundsException - If the index is negative or not
smaller than getNumGroups()ObjGroup getGroup(String name)
null if
there is no such group in this Obj.name - The name of the group.int getNumMaterialGroups()
ObjGroup getMaterialGroup(int index)
index - The index of the material group.IndexOutOfBoundsException - If the index is negative or not
smaller than getNumMaterialGroups()ObjGroup getMaterialGroup(String name)
null if
there is no such group in this Obj.name - The name of the material group.Copyright © 2015. All rights reserved.