de.javagl.utils.obj
Interface ObjGroup

All Known Implementing Classes:
DefaultObjGroup

public interface ObjGroup

Interface describing a single group of an OBJ file. This may either be a geometry group that is identified by the 'g' token, or a group that is implied by a common material, identified by the 'usemtl' token.


Method Summary
 ObjFace getFace(int index)
          Returns the face with the given index.
 String getName()
          Returns the name of this group.
 int getNumFaces()
          Returns the number of faces in this group.
 

Method Detail

getName

String getName()
Returns the name of this group.

Returns:
The name of this group.

getNumFaces

int getNumFaces()
Returns the number of faces in this group.

Returns:
The number of faces in this group.

getFace

ObjFace getFace(int index)
Returns the face with the given index.

Parameters:
index - The index of the face
Returns:
The face with the given index.