|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Obj
Interface for classes providing part of the data that may be stored in
an OBJ file. The data represented by this interface is:
Vertices
Texture Coordinates
Normals
Faces
Groups
Material groups
Method Summary | |
---|---|
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. |
ObjGroup |
getMaterialGroup(int index)
Returns the material group with the given index. |
ObjGroup |
getMaterialGroup(String name)
Returns the material group with the given name. |
String |
getMtlFileName()
Returns the name of the MTL file that is associated with this Obj. |
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. |
Method Detail |
---|
int getNumVertices()
FloatTuple getVertex(int index)
index
- The index of the vertex
int getNumTexCoords()
FloatTuple getTexCoord(int index)
index
- The index of the texture coordinate
int getNumNormals()
FloatTuple getNormal(int index)
index
- The index of the normal
int getNumFaces()
ObjFace getFace(int index)
index
- The index of the face.
int getNumGroups()
ObjGroup getGroup(int index)
index
- The index of the group.
ObjGroup getGroup(String name)
name
- The name of the group.
int getNumMaterialGroups()
ObjGroup getMaterialGroup(int index)
index
- The index of the material group.
ObjGroup getMaterialGroup(String name)
name
- The name of the material group.
String getMtlFileName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |