de.javagl.swogl.geometry
Interface SimpleGeometry

All Superinterfaces:
Geometry

public interface SimpleGeometry
extends Geometry

A Geometry that consists of a rectangular grid of points.


Method Summary
 int getNumPointsX()
          Returns the number of vertices of this Geometry in x-direction
 int getNumPointsY()
          Returns the number of vertices of this Geometry in y-direction
 void getVertex(int x, int y, javax.vecmath.Tuple3f vertex)
          Store the coordinates of the specified vertex in the given tuple
 void setVertex(int x, int y, javax.vecmath.Tuple3f vertex)
          Set the position of the specified vertex.
 
Methods inherited from interface de.javagl.swogl.geometry.Geometry
areTexCoordsModified, areVerticesModified, getNormal, getNumTriangles, getNumVertices, getTexCoord, getVertex, getVertexIndex, setNormal, setTexCoord, setTexCoordsModified, setVertex, setVerticesModified
 

Method Detail

getNumPointsX

int getNumPointsX()
Returns the number of vertices of this Geometry in x-direction

Returns:
The number of vertices of this Geometry in x-direction

getNumPointsY

int getNumPointsY()
Returns the number of vertices of this Geometry in y-direction

Returns:
The number of vertices of this Geometry in y-direction

getVertex

void getVertex(int x,
               int y,
               javax.vecmath.Tuple3f vertex)
Store the coordinates of the specified vertex in the given tuple

Parameters:
x - The x-index of the vertex
y - The y-index of the vertex
vertex - The position of the vertex

setVertex

void setVertex(int x,
               int y,
               javax.vecmath.Tuple3f vertex)
Set the position of the specified vertex. This will set the flag which indicates whether the vertices are modified.

Parameters:
x - The x-index of the vertex
y - The y-index of the vertex
vertex - The position of the vertex