org.deegree.rendering.r3d.opengl.tesselation
Class Vertex
java.lang.Object
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)
|
x
float x
y
float y
z
float z
normal
float[] normal
Vertex
Vertex(double[] coordinates,
Vertex[] otherVertices,
float[] weights)
- Create a vertex from the given coordinates and the surrounding vertices.
- Parameters:
coordinates - of new vertexotherVertices - which were used (combined) to create this vertex from.
Vertex
Vertex(float[] coordinates)
Vertex
Vertex(float[] coordinates,
float[] normal)
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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>