saito.objloader
Class Segment
java.lang.Object
saito.objloader.Segment
public class Segment
- extends java.lang.Object
Constructor Summary |
Segment()
Constructor for the ModelSegment, each Segment holds a Vector of
Elements. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
faces
public java.util.ArrayList<Face> faces
materialName
public java.lang.String materialName
indexIB
public java.nio.IntBuffer indexIB
dataFB
public java.nio.FloatBuffer dataFB
Segment
public Segment()
- Constructor for the ModelSegment, each Segment holds a Vector of
Elements. each element is a collection of indexes to the vert, normal,
and UV arrays that make up a single face.
getMaterialName
public java.lang.String getMaterialName()
getFace
public Face getFace(int index)
getFaces
public Face[] getFaces()
getIndices
public PVector[] getIndices()
getFaceCount
public int getFaceCount()
getIndexCount
public int getIndexCount()
sortFacesByX
public void sortFacesByX()
sortFacesByY
public void sortFacesByY()
sortFacesByZ
public void sortFacesByZ()
setupGL
public void setupGL(GL gl,
Debug debug,
PVector[] p,
PVector[] t,
PVector[] n)
beginDrawGL
public void beginDrawGL(GL gl)
drawGL
public void drawGL(GL gl,
int GLTYPE)
endDrawGL
public void endDrawGL(GL gl)
processing library OBJLoader by Saito, Matt Ditton, Ekene Ijeoma. (c) 2010