glmodel
Class GL_Vertex

java.lang.Object
  extended by glmodel.GL_Vertex

public class GL_Vertex
extends java.lang.Object

Vertex contains an xyz position, and a list of neighboring triangles. Normals and texture coordinates are stored in the GL_Triangle object, since each face may have different normals and texture coords for the same vertex. The "neighbor" triangle list holds all triangles that contains this vertex. Not to be confused with the GL_Triangle.neighborsP1, GL_Triangle.neighborsP2, etc. that contain only neighbors that should be smoothed into the given triangle. jun 2006: added makeClone()


Field Summary
 int ID
           
 java.util.ArrayList neighborTris
           
 GL_Vector pos
           
 GL_Vector posS
           
 
Constructor Summary
GL_Vertex()
           
GL_Vertex(float xpos, float ypos, float zpos)
           
GL_Vertex(float xpos, float ypos, float zpos, float u, float v)
           
GL_Vertex(GL_Vector ppos)
           
 
Method Summary
 GL_Vertex makeClone()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pos

public GL_Vector pos

posS

public GL_Vector posS

ID

public int ID

neighborTris

public java.util.ArrayList neighborTris
Constructor Detail

GL_Vertex

public GL_Vertex()

GL_Vertex

public GL_Vertex(float xpos,
                 float ypos,
                 float zpos)

GL_Vertex

public GL_Vertex(float xpos,
                 float ypos,
                 float zpos,
                 float u,
                 float v)

GL_Vertex

public GL_Vertex(GL_Vector ppos)
Method Detail

makeClone

public GL_Vertex makeClone()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object