deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.rendering.r3d.opengl.tesselation
Class Vertex

java.lang.Object
  extended by org.deegree.rendering.r3d.opengl.tesselation.Vertex
Direct Known Subclasses:
TexturedVertex

public class Vertex
extends Object

The Vertex helper class for the tesselation algorithm

Version:
$Revision: 18171 $, $Date: 2009-06-17 16:00:07 +0200 (Mi, 17 Jun 2009) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Field Summary
(package private)  float[] normal
           
(package private)  float x
           
(package private)  float y
           
(package private)  float z
           
 
Constructor Summary
Vertex(double[] coordinates, Vertex[] otherVertices, float[] weights)
          Create a vertex from the given coordinates and the surrounding vertices.
Vertex(float[] coordinates)
           
Vertex(float[] coordinates, float[] normal)
           
 
Method Summary
 float[] getCoords()
           
 double[] getCoordsAsDouble()
           
 float[] getNormal()
           
 float[] getNormalizedNormal()
           
 boolean hasNormal()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

float x

y

float y

z

float z

normal

float[] normal
Constructor Detail

Vertex

Vertex(double[] coordinates,
       Vertex[] otherVertices,
       float[] weights)
Create a vertex from the given coordinates and the surrounding vertices.

Parameters:
coordinates - of new vertex
otherVertices - which were used (combined) to create this vertex from.

Vertex

Vertex(float[] coordinates)

Vertex

Vertex(float[] coordinates,
       float[] normal)
Method Detail

getCoordsAsDouble

public double[] getCoordsAsDouble()
Returns:
the x, y ,z as a double array

getCoords

public float[] getCoords()
Returns:
the x, y ,z as a an array

getNormal

public float[] getNormal()
Returns:
the x, y ,z as a an array

getNormalizedNormal

public float[] getNormalizedNormal()
Returns:
the x, y ,z as a an array

hasNormal

public boolean hasNormal()
Returns:
true if the normal != null

toString

public String toString()
Overrides:
toString in class Object

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>