glmodel
Class GL_Vertex
java.lang.Object
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()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
pos
public GL_Vector pos
posS
public GL_Vector posS
ID
public int ID
neighborTris
public java.util.ArrayList neighborTris
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)
makeClone
public GL_Vertex makeClone()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object