CubeTwister 2.0alpha141 2011-10-13

idx3d
Class idx3d_Vertex

java.lang.Object
  extended by idx3d.idx3d_Vertex

public class idx3d_Vertex
extends java.lang.Object

Defines a triangle vertex.

Version:
3.3.1 2010-11-06 Werner Randelshofer: Adds equals(Object) and hashCode() method.
3.3 2006-02-22 Werner Randelshofer: Avoid unnecessary object creation. 3.2 2003-12-21 Werner Randelshofer: Moved responsibility for texture location from this class to idx3d_Triangle. Dependency note: This change also requires changes in idx3d_Triangle, idx3d_Rasterizer, idx3d_Object, idx3d_TextureProjector.

Field Summary
 int id
          Vertex index.
 idx3d_Vector n
          Normal Vector at vertex.
 idx3d_Vector n2
          Transformed normal vector (camera space).
 int nx
          Normal x-coordinate for envmapping.
 int ny
          Normal y-coordinate for envmapping.
 idx3d_Object parent
           
 idx3d_Vector pos
          (x,y,z) Coordinate of vertex.
 idx3d_Vector pos2
          Transformed vertex coordinate.
 boolean visible
          Visibility tag for clipping.
 int x
          Projected x coordinate.
 int y
          Projected y coordinate.
 int z
          Projected z coordinate for z-Buffer.
 
Constructor Summary
idx3d_Vertex()
           
idx3d_Vertex(float xpos, float ypos, float zpos)
           
idx3d_Vertex(idx3d_Vector ppos)
           
 
Method Summary
 boolean equals(idx3d_Vertex v)
           
 boolean equals(idx3d_Vertex v, float tolerance)
           
 boolean equals(java.lang.Object obj)
           
 idx3d_Vertex getClone()
           
 int hashCode()
           
 void regenerateNormal()
          Recalculates the vertex normal.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

public idx3d_Object parent

pos

public idx3d_Vector pos
(x,y,z) Coordinate of vertex.


pos2

public idx3d_Vector pos2
Transformed vertex coordinate.


n

public idx3d_Vector n
Normal Vector at vertex.


n2

public idx3d_Vector n2
Transformed normal vector (camera space).


x

public int x
Projected x coordinate.


y

public int y
Projected y coordinate.


z

public int z
Projected z coordinate for z-Buffer.


nx

public int nx
Normal x-coordinate for envmapping.


ny

public int ny
Normal y-coordinate for envmapping.


visible

public boolean visible
Visibility tag for clipping.


id

public int id
Vertex index.

Constructor Detail

idx3d_Vertex

public idx3d_Vertex()

idx3d_Vertex

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

idx3d_Vertex

public idx3d_Vertex(idx3d_Vector ppos)
Method Detail

regenerateNormal

public void regenerateNormal()
Recalculates the vertex normal.


getClone

public idx3d_Vertex getClone()

toString

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

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(idx3d_Vertex v)

equals

public boolean equals(idx3d_Vertex v,
                      float tolerance)

(c) Werner Randelshofer.
All rights reserved.