|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object glmodel.GL_3DS_Importer
public class GL_3DS_Importer
Import a 3DS file into a GL_Model object.
Constructor Summary | |
---|---|
GL_3DS_Importer()
|
Method Summary | |
---|---|
GL_Triangle |
addTriangle(GL_Mesh obj,
glmodel.Face face,
java.util.ArrayList txtrs,
java.util.ArrayList norms)
Add a new triangle to the GL_Object. |
GL_Mesh |
importFromStream(java.io.InputStream inStream)
Load the 3DS file and store into a mesh. |
GL_Mesh |
load(java.lang.String filename)
|
GL_Mesh |
makeMeshObject(java.util.ArrayList verts,
java.util.ArrayList txtrs,
java.util.ArrayList norms,
java.util.ArrayList faces)
create a GL_Object (mesh object) from the data read by a 3DS_Reader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GL_3DS_Importer()
Method Detail |
---|
public GL_Mesh load(java.lang.String filename)
public GL_Mesh importFromStream(java.io.InputStream inStream)
public GL_Mesh makeMeshObject(java.util.ArrayList verts, java.util.ArrayList txtrs, java.util.ArrayList norms, java.util.ArrayList faces)
verts
- ArrayList of verticestxtrs
- ArrayList of texture coordinatesnorms
- ArrayList of normalfaces
- ArrayList of Face objects (triangles)
public GL_Triangle addTriangle(GL_Mesh obj, glmodel.Face face, java.util.ArrayList txtrs, java.util.ArrayList norms)
obj
- GL_Objectface
- a face from the OBJ filetxtrs
- ArrayList of texture coords from the OBJ filenorms
- ArrayList of normals from the OBJ filev1
- vertices to use for the triangle (face may have >3 verts)v2
- v3
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |