|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectssmith.opengl.ModelData
public class ModelData
The data that has been read from the Wavefront .obj file. This is kept seperate from the actual rendering with the hope the data might be used for some other rendering engine in the future.
| Constructor Summary | |
|---|---|
ModelData(java.io.InputStream in,
float scale)
Create a new set of OBJ data by reading it in from the specified input stream. |
|
| Method Summary | |
|---|---|
ssmith.opengl.Face |
getFace(int grp,
int index)
Get the data for specific face |
int |
getFaceCount(int grp)
Get the number of faces found in the model file |
int |
getGroupCount()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelData(java.io.InputStream in,
float scale)
throws java.io.IOException
in - The input stream from which to read the OBJ data
java.io.IOException - Indicates a failure to read from the stream| Method Detail |
|---|
public int getFaceCount(int grp)
public ssmith.opengl.Face getFace(int grp,
int index)
index - The index of the face whose data should be retrieved
public int getGroupCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||