edu.jhu.ece.iacl.jist.structures.geom
Class EmbeddedSurface

java.lang.Object
  extended by ModelTriangleMesh
      extended by edu.jhu.ece.iacl.jist.structures.geom.EmbeddedSurface
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<EmbeddedSurface>

public class EmbeddedSurface
extends ModelTriangleMesh
implements java.lang.Cloneable, java.lang.Comparable<EmbeddedSurface>

The Class EmbeddedSurface.


Nested Class Summary
static class EmbeddedSurface.Direction
          The Enum Direction.
static class EmbeddedSurface.Edge
          The Class Edge.
static class EmbeddedSurface.EdgeSplit
          The Class EdgeSplit.
static class EmbeddedSurface.Face
          The Class Face.
 
Field Summary
protected  double[][] cellData
          The cell data.
protected  EmbeddedSurface.Edge[] edges
          The edges.
protected  int[][] edgeTable
          The edge table.
protected  EmbeddedSurface.Face[] faces
          The faces.
protected  EmbeddedSurface.Face[][] neighborEdgeFaceTable
          The neighbor edge face table.
protected  EmbeddedSurface.Face[][] neighborFaceFaceTable
          The neighbor face face table.
protected  EmbeddedSurface.Edge[][] neighborVertexEdgeTable
          The neighbor vertex edge table.
protected  EmbeddedSurface.Face[][] neighborVertexFaceTable
          The neighbor vertex face table.
protected  int[][] neighborVertexVertexTable
          The neighbor vertex vertex table.
protected  Point3f origin
          The origin.
protected  Vector3f scale
          The scale.
protected  double[][] textureCoords
          The texture coords.
protected  double[][] vertexData
          The vertex data.
 
Constructor Summary
EmbeddedSurface(EmbeddedSurface mesh)
          Instantiates a new embedded surface.
EmbeddedSurface(EmbeddedSurface mesh, double[][] data)
          Instantiates a new embedded surface.
EmbeddedSurface(ModelTriangleMesh mesh)
          Instantiates a new embedded surface.
EmbeddedSurface(ModelTriangleMesh mesh, double[][] data)
          Instantiates a new embedded surface.
EmbeddedSurface(Point3f[] points, int[] indexes)
          Instantiates a new embedded surface.
EmbeddedSurface(Point3f[] points, int[] indexes, double[][] data)
          Instantiates a new embedded surface.
EmbeddedSurface(Point3f[] points, Vector3f[] arg1, Color3f[] arg2, int[] arg3)
          Instantiates a new embedded surface.
EmbeddedSurface(Point3f[] points, Vector3f[] arg1, Color3f[] arg2, int[] arg3, double[][] data)
          Instantiates a new embedded surface.
EmbeddedSurface(Point3f[] points, Vector3f[] arg1, Color4f[] arg2, int[] arg3)
          Instantiates a new embedded surface.
EmbeddedSurface(Point3f[] points, Vector3f[] arg1, Color4f[] arg2, int[] arg3, double[][] data)
          Instantiates a new embedded surface.
EmbeddedSurface(Point3f[] points, Vector3f[] normals, int[] indexes)
          Instantiates a new embedded surface.
EmbeddedSurface(Point3f[] points, Vector3f[] normals, int[] indexes, double[][] data)
          Instantiates a new embedded surface.
 
Method Summary
 void affineTransformVertices(Matrix3f m, Point3f t)
          Affine transform vertices.
 void buildAllTables()
          Builds the all tables.
static java.util.Hashtable<java.lang.Long,EmbeddedSurface.Edge> buildEdgeHash(EmbeddedSurface.Edge[] edges)
          Builds the edge hash.
static EmbeddedSurface.Edge[] buildEdgeTable(ModelTriangleMesh mesh)
          Builds the edge table.
static EmbeddedSurface.Face[] buildFaceTable(ModelTriangleMesh mesh, EmbeddedSurface.Edge[] edges, java.util.Hashtable<java.lang.Long,EmbeddedSurface.Edge> edgeHash)
          Builds the face table.
static EmbeddedSurface.Face[][] buildNeighborEdgeFaceTable(ModelTriangleMesh mesh, EmbeddedSurface.Face[] faces, java.util.Hashtable<java.lang.Long,EmbeddedSurface.Edge> edgeHash, EmbeddedSurface.Edge[] edges)
          Builds the neighbor edge face table.
static EmbeddedSurface.Face[][] buildNeighborFaceFaceTable(ModelTriangleMesh mesh, EmbeddedSurface.Face[] faces, EmbeddedSurface.Face[][] neighborEdgeFaceTable)
          Builds the neighbor face face table.
static EmbeddedSurface.Edge[][] buildNeighborVertexEdgeTable(int[][] neighborVertexTable, EmbeddedSurface.Edge[] edges, java.util.Hashtable<java.lang.Long,EmbeddedSurface.Edge> edgeHash)
          Builds the neighbor vertex edge table.
static EmbeddedSurface.Face[][] buildNeighborVertexFaceTable(EmbeddedSurface.Edge[][] neighborEdgeTable, EmbeddedSurface.Face[][] neighborFaceTable)
          Builds the neighbor vertex face table.
static int[][] buildNeighborVertexVertexTable(ModelTriangleMesh mesh, EmbeddedSurface.Direction dir)
          Construct a neighbor table ordered in a particular direction.
 EmbeddedSurface clone()
           
 int compareTo(EmbeddedSurface surf)
           
 void convertToCartesian()
          Convert to cartesian.
 void convertToSpherical()
          Convert to spherical.
 void disposeAllTables()
          Dispose all tables.
 double[][] getCellData()
           
 Point3f getCenterOfMass()
          Gets the center of mass.
 Point3f getCentroid(int fid)
          Gets the centroid.
 Point3f getCentroidAtOffset(int fid, int offset)
          Gets the centroid at offset.
 EmbeddedSurface.Edge[] getEdges()
          Gets the edges.
 int[][] getEdgeTable()
          Gets the edge table.
 EmbeddedSurface getEmbeddedSphere(int offset, boolean polar)
          Gets the embedded sphere.
 float getFaceArea(int fid)
          Gets the face area.
 int getFaceCount()
          Gets the face count.
 Point3f[] getFacePoints(int fid)
          Gets the face points.
 EmbeddedSurface.Face[] getFaces()
          Gets the faces.
 int[] getFaceVertexIds(int fid)
          Gets the face vertex ids.
static int getGenus(ModelTriangleMesh mesh)
          Gets the genus.
 Point3f getInnerPoint(int i)
          Gets the inner point.
 Point3f getMax()
          Gets the max.
 float getMaxAngle(int fid)
          Gets the max angle.
 Point3f getMin()
          Gets the min.
 float getMinAngle(int fid)
          Gets the min angle.
 EmbeddedSurface.Face[][] getNeighborEdgeFaceTable()
          Gets the neighbor edge face table.
 EmbeddedSurface.Face[][] getNeighborFaceFaceTable()
          Gets the neighbor face face table.
 EmbeddedSurface.Edge[][] getNeighborVertexEdgeTable()
          Gets the neighbor vertex edge table.
 EmbeddedSurface.Face[][] getNeighborVertexFaceTable()
          Gets the neighbor vertex face table.
 int[][] getNeighborVertexVertexTable()
          Gets the neighbor vertex vertex table.
 Vector3f getNormal(int i)
          Gets the normal.
 long getNumberOfHoles()
          Gets the number of holes.
 Point3f getOrigin()
          Gets the origin.
 Point3f getOuterPoint(int i)
          Gets the outer point.
 Point3f getPointAtOffset(int i, int offset)
          Gets the point at offset.
 Vector3f getScale()
          Gets the scale.
protected  double[] getStatistics(int i)
          Gets the statistics.
 double[] getStats()
          Gets the stats.
 double[][] getTextureCoordinates()
          Gets the texture coordinates.
 double getThickness(int i)
          Gets the thickness.
 Vector3f getVectorAtOffset(int i, int offset)
          Gets the vector at offset.
 Point3f getVertex(int i)
          Gets the vertex.
 double[][] getVertexData()
           
 double[] getVertexData(int i)
           
 double getVertexDataAtOffset(int i, int offset)
          Gets the vertex data at offset.
 double[] getVertexDoubleCopy()
          Gets the vertex double copy.
 boolean hasEmbeddedData()
          Checks for embedded data.
 Point3f midPoint(EmbeddedSurface.Edge e)
          Mid point.
 double[] midValues(EmbeddedSurface.Edge e)
          Mid values.
 void repairDegenerateMappings(float minDist, float perturbation)
          Repair degenerate mappings.
 void repairDegenerateTriangles(float minDist, float perturbation)
          Repair degenerate triangles.
 void resizeData(int dim)
          Resize data.
 void rotateVertices(float theta, float phi)
          Rotate vertices.
 void scaleData(float scalar)
          Scale data.
 void scaleVertices(float scalar)
          Scale vertices.
 void scaleVertices(float[] scalar)
          Scale vertices.
 void setCellData(double[][] cellData)
           
 void setColor(int i, java.awt.Color c)
          Sets the color.
 void setInnerPoint(int i, Point3f p)
          Sets the inner point.
 void setOrigin(Point3f scale)
          Sets the origin.
 void setOuterPoint(int i, Point3f p)
          Sets the outer point.
 void setScale(Vector3f scale)
          Sets the scale.
 void setTextureCoordinates(double[][] textureCoords)
          Sets the texture coordinates.
 void setThickness(int i, double thick)
          Sets the thickness.
 void setVertex(int i, Tuple3f p)
          Sets the vertex.
 void setVertexData(double[][] data)
           
 void setVertexData(int i, double val)
           
 void setVertexData(int i, double[] array)
           
 void setVertexData(int i, int j, double val)
           
 java.lang.String toString()
           
 void transform(Matrix m)
          Transform.
 void translate(Point3f offset)
          Translate.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

textureCoords

protected double[][] textureCoords
The texture coords.


vertexData

protected double[][] vertexData
The vertex data.


cellData

protected double[][] cellData
The cell data.


edgeTable

protected int[][] edgeTable
The edge table.


neighborVertexVertexTable

protected int[][] neighborVertexVertexTable
The neighbor vertex vertex table.


neighborEdgeFaceTable

protected EmbeddedSurface.Face[][] neighborEdgeFaceTable
The neighbor edge face table.


neighborVertexFaceTable

protected EmbeddedSurface.Face[][] neighborVertexFaceTable
The neighbor vertex face table.


edges

protected EmbeddedSurface.Edge[] edges
The edges.


neighborVertexEdgeTable

protected EmbeddedSurface.Edge[][] neighborVertexEdgeTable
The neighbor vertex edge table.


faces

protected EmbeddedSurface.Face[] faces
The faces.


neighborFaceFaceTable

protected EmbeddedSurface.Face[][] neighborFaceFaceTable
The neighbor face face table.


origin

protected Point3f origin
The origin.


scale

protected Vector3f scale
The scale.

Constructor Detail

EmbeddedSurface

public EmbeddedSurface(EmbeddedSurface mesh)
Instantiates a new embedded surface.

Parameters:
mesh - the mesh

EmbeddedSurface

public EmbeddedSurface(EmbeddedSurface mesh,
                       double[][] data)
Instantiates a new embedded surface.

Parameters:
mesh - the mesh
data - the data

EmbeddedSurface

public EmbeddedSurface(ModelTriangleMesh mesh)
Instantiates a new embedded surface.

Parameters:
mesh - the mesh

EmbeddedSurface

public EmbeddedSurface(ModelTriangleMesh mesh,
                       double[][] data)
Instantiates a new embedded surface.

Parameters:
mesh - the mesh
data - the data

EmbeddedSurface

public EmbeddedSurface(Point3f[] points,
                       int[] indexes)
Instantiates a new embedded surface.

Parameters:
points - the points
indexes - the indexes

EmbeddedSurface

public EmbeddedSurface(Point3f[] points,
                       int[] indexes,
                       double[][] data)
Instantiates a new embedded surface.

Parameters:
points - the points
indexes - the indexes
data - the data

EmbeddedSurface

public EmbeddedSurface(Point3f[] points,
                       Vector3f[] arg1,
                       Color3f[] arg2,
                       int[] arg3)
Instantiates a new embedded surface.

Parameters:
points - the points
arg1 - the arg1
arg2 - the arg2
arg3 - the arg3

EmbeddedSurface

public EmbeddedSurface(Point3f[] points,
                       Vector3f[] arg1,
                       Color3f[] arg2,
                       int[] arg3,
                       double[][] data)
Instantiates a new embedded surface.

Parameters:
points - the points
arg1 - the arg1
arg2 - the arg2
arg3 - the arg3
data - the data

EmbeddedSurface

public EmbeddedSurface(Point3f[] points,
                       Vector3f[] arg1,
                       Color4f[] arg2,
                       int[] arg3)
Instantiates a new embedded surface.

Parameters:
points - the points
arg1 - the arg1
arg2 - the arg2
arg3 - the arg3

EmbeddedSurface

public EmbeddedSurface(Point3f[] points,
                       Vector3f[] arg1,
                       Color4f[] arg2,
                       int[] arg3,
                       double[][] data)
Instantiates a new embedded surface.

Parameters:
points - the points
arg1 - the arg1
arg2 - the arg2
arg3 - the arg3
data - the data

EmbeddedSurface

public EmbeddedSurface(Point3f[] points,
                       Vector3f[] normals,
                       int[] indexes)
Instantiates a new embedded surface.

Parameters:
points - the points
normals - the normals
indexes - the indexes

EmbeddedSurface

public EmbeddedSurface(Point3f[] points,
                       Vector3f[] normals,
                       int[] indexes,
                       double[][] data)
Instantiates a new embedded surface.

Parameters:
points - the points
normals - the normals
indexes - the indexes
data - the data
Method Detail

buildEdgeHash

public static java.util.Hashtable<java.lang.Long,EmbeddedSurface.Edge> buildEdgeHash(EmbeddedSurface.Edge[] edges)
Builds the edge hash.

Parameters:
edges - the edges
Returns:
the hashtable< long, edge>

buildEdgeTable

public static EmbeddedSurface.Edge[] buildEdgeTable(ModelTriangleMesh mesh)
Builds the edge table.

Parameters:
mesh - the mesh
Returns:
the edge[]

buildFaceTable

public static EmbeddedSurface.Face[] buildFaceTable(ModelTriangleMesh mesh,
                                                    EmbeddedSurface.Edge[] edges,
                                                    java.util.Hashtable<java.lang.Long,EmbeddedSurface.Edge> edgeHash)
Builds the face table.

Parameters:
mesh - the mesh
edges - the edges
edgeHash - the edge hash
Returns:
the face[]

buildNeighborEdgeFaceTable

public static EmbeddedSurface.Face[][] buildNeighborEdgeFaceTable(ModelTriangleMesh mesh,
                                                                  EmbeddedSurface.Face[] faces,
                                                                  java.util.Hashtable<java.lang.Long,EmbeddedSurface.Edge> edgeHash,
                                                                  EmbeddedSurface.Edge[] edges)
Builds the neighbor edge face table.

Parameters:
mesh - the mesh
faces - the faces
edgeHash - the edge hash
edges - the edges
Returns:
the face[][]

buildNeighborFaceFaceTable

public static EmbeddedSurface.Face[][] buildNeighborFaceFaceTable(ModelTriangleMesh mesh,
                                                                  EmbeddedSurface.Face[] faces,
                                                                  EmbeddedSurface.Face[][] neighborEdgeFaceTable)
Builds the neighbor face face table.

Parameters:
mesh - the mesh
faces - the faces
neighborEdgeFaceTable - the neighbor edge face table
Returns:
the face[][]

buildNeighborVertexEdgeTable

public static EmbeddedSurface.Edge[][] buildNeighborVertexEdgeTable(int[][] neighborVertexTable,
                                                                    EmbeddedSurface.Edge[] edges,
                                                                    java.util.Hashtable<java.lang.Long,EmbeddedSurface.Edge> edgeHash)
Builds the neighbor vertex edge table.

Parameters:
neighborVertexTable - the neighbor vertex table
edges - the edges
edgeHash - the edge hash
Returns:
the edge[][]

buildAllTables

public void buildAllTables()
Builds the all tables.


disposeAllTables

public void disposeAllTables()
Dispose all tables.


buildNeighborVertexFaceTable

public static EmbeddedSurface.Face[][] buildNeighborVertexFaceTable(EmbeddedSurface.Edge[][] neighborEdgeTable,
                                                                    EmbeddedSurface.Face[][] neighborFaceTable)
Builds the neighbor vertex face table.

Parameters:
neighborEdgeTable - the neighbor edge table
neighborFaceTable - the neighbor face table
Returns:
the face[][]

buildNeighborVertexVertexTable

public static int[][] buildNeighborVertexVertexTable(ModelTriangleMesh mesh,
                                                     EmbeddedSurface.Direction dir)
Construct a neighbor table ordered in a particular direction. This algorithm assumes a closed manifold with no holes

Parameters:
mesh - triangle mesh
dir - rotation direction
Returns:
list of nodes by their neighbors (variable size array list)

getGenus

public static int getGenus(ModelTriangleMesh mesh)
Gets the genus.

Parameters:
mesh - the mesh
Returns:
the genus

getEdgeTable

public int[][] getEdgeTable()
Gets the edge table.

Returns:
the edge table

getNeighborFaceFaceTable

public EmbeddedSurface.Face[][] getNeighborFaceFaceTable()
Gets the neighbor face face table.

Returns:
the neighbor face face table

getNeighborVertexVertexTable

public int[][] getNeighborVertexVertexTable()
Gets the neighbor vertex vertex table.

Returns:
the neighbor vertex vertex table

getNeighborEdgeFaceTable

public EmbeddedSurface.Face[][] getNeighborEdgeFaceTable()
Gets the neighbor edge face table.

Returns:
the neighbor edge face table

getNeighborVertexFaceTable

public EmbeddedSurface.Face[][] getNeighborVertexFaceTable()
Gets the neighbor vertex face table.

Returns:
the neighbor vertex face table

getEdges

public EmbeddedSurface.Edge[] getEdges()
Gets the edges.

Returns:
the edges

getNeighborVertexEdgeTable

public EmbeddedSurface.Edge[][] getNeighborVertexEdgeTable()
Gets the neighbor vertex edge table.

Returns:
the neighbor vertex edge table

getFaces

public EmbeddedSurface.Face[] getFaces()
Gets the faces.

Returns:
the faces

clone

public EmbeddedSurface clone()

compareTo

public int compareTo(EmbeddedSurface surf)

convertToCartesian

public void convertToCartesian()
Convert to cartesian.


convertToSpherical

public void convertToSpherical()
Convert to spherical.


getCellData

public double[][] getCellData()

getCenterOfMass

public Point3f getCenterOfMass()
Gets the center of mass.

Returns:
the center of mass

getCentroid

public Point3f getCentroid(int fid)
Gets the centroid.

Parameters:
fid - the fid
Returns:
the centroid

getCentroidAtOffset

public Point3f getCentroidAtOffset(int fid,
                                   int offset)
Gets the centroid at offset.

Parameters:
fid - the fid
offset - the offset
Returns:
the centroid at offset

getEmbeddedSphere

public EmbeddedSurface getEmbeddedSphere(int offset,
                                         boolean polar)
Gets the embedded sphere.

Parameters:
offset - the offset
polar - the polar
Returns:
the embedded sphere

getFaceArea

public float getFaceArea(int fid)
Gets the face area.

Parameters:
fid - the fid
Returns:
the face area

getFaceCount

public int getFaceCount()
Gets the face count.

Returns:
the face count

getFacePoints

public Point3f[] getFacePoints(int fid)
Gets the face points.

Parameters:
fid - the fid
Returns:
the face points

getFaceVertexIds

public int[] getFaceVertexIds(int fid)
Gets the face vertex ids.

Parameters:
fid - the fid
Returns:
the face vertex ids

getInnerPoint

public Point3f getInnerPoint(int i)
Gets the inner point.

Parameters:
i - the i
Returns:
the inner point

getMax

public Point3f getMax()
Gets the max.

Returns:
the max

getMaxAngle

public float getMaxAngle(int fid)
Gets the max angle.

Parameters:
fid - the fid
Returns:
the max angle

getMin

public Point3f getMin()
Gets the min.

Returns:
the min

getMinAngle

public float getMinAngle(int fid)
Gets the min angle.

Parameters:
fid - the fid
Returns:
the min angle

getNormal

public Vector3f getNormal(int i)
Gets the normal.

Parameters:
i - the i
Returns:
the normal

getNumberOfHoles

public long getNumberOfHoles()
Gets the number of holes.

Returns:
the number of holes

getOrigin

public Point3f getOrigin()
Gets the origin.

Returns:
the origin

getOuterPoint

public Point3f getOuterPoint(int i)
Gets the outer point.

Parameters:
i - the i
Returns:
the outer point

getPointAtOffset

public Point3f getPointAtOffset(int i,
                                int offset)
Gets the point at offset.

Parameters:
i - the i
offset - the offset
Returns:
the point at offset

getScale

public Vector3f getScale()
Gets the scale.

Returns:
the scale

getStatistics

protected double[] getStatistics(int i)
Gets the statistics.

Parameters:
i - the i
Returns:
the statistics

getStats

public double[] getStats()
Gets the stats.

Returns:
the stats

getThickness

public double getThickness(int i)
Gets the thickness.

Parameters:
i - the i
Returns:
the thickness

getVectorAtOffset

public Vector3f getVectorAtOffset(int i,
                                  int offset)
Gets the vector at offset.

Parameters:
i - the i
offset - the offset
Returns:
the vector at offset

getVertex

public Point3f getVertex(int i)
Gets the vertex.

Parameters:
i - the i
Returns:
the vertex

getVertexDoubleCopy

public double[] getVertexDoubleCopy()
Gets the vertex double copy.

Returns:
the vertex double copy

getVertexData

public double[][] getVertexData()

getVertexData

public double[] getVertexData(int i)

getVertexDataAtOffset

public double getVertexDataAtOffset(int i,
                                    int offset)
Gets the vertex data at offset.

Parameters:
i - the i
offset - the offset
Returns:
the vertex data at offset

hasEmbeddedData

public boolean hasEmbeddedData()
Checks for embedded data.

Returns:
true, if successful

midPoint

public Point3f midPoint(EmbeddedSurface.Edge e)
Mid point.

Parameters:
e - the e
Returns:
the point3f

midValues

public double[] midValues(EmbeddedSurface.Edge e)
Mid values.

Parameters:
e - the e
Returns:
the double[]

repairDegenerateMappings

public void repairDegenerateMappings(float minDist,
                                     float perturbation)
Repair degenerate mappings.

Parameters:
minDist - the min dist
perturbation - the perturbation

repairDegenerateTriangles

public void repairDegenerateTriangles(float minDist,
                                      float perturbation)
Repair degenerate triangles.

Parameters:
minDist - the min dist
perturbation - the perturbation

resizeData

public void resizeData(int dim)
Resize data.

Parameters:
dim - the dim

scaleData

public void scaleData(float scalar)
Scale data.

Parameters:
scalar - the scalar

scaleVertices

public void scaleVertices(float scalar)
Scale vertices.

Parameters:
scalar - the scalar

rotateVertices

public void rotateVertices(float theta,
                           float phi)
Rotate vertices.

Parameters:
theta - the theta
phi - the phi

scaleVertices

public void scaleVertices(float[] scalar)
Scale vertices.

Parameters:
scalar - the scalar

affineTransformVertices

public void affineTransformVertices(Matrix3f m,
                                    Point3f t)
Affine transform vertices.

Parameters:
m - the m
t - the t

setCellData

public void setCellData(double[][] cellData)

setColor

public void setColor(int i,
                     java.awt.Color c)
Sets the color.

Parameters:
i - the i
c - the c

setInnerPoint

public void setInnerPoint(int i,
                          Point3f p)
Sets the inner point.

Parameters:
i - the i
p - the p

setOrigin

public void setOrigin(Point3f scale)
Sets the origin.

Parameters:
scale - the new origin

setOuterPoint

public void setOuterPoint(int i,
                          Point3f p)
Sets the outer point.

Parameters:
i - the i
p - the p

setScale

public void setScale(Vector3f scale)
Sets the scale.

Parameters:
scale - the new scale

setThickness

public void setThickness(int i,
                         double thick)
Sets the thickness.

Parameters:
i - the i
thick - the thick

setVertex

public void setVertex(int i,
                      Tuple3f p)
Sets the vertex.

Parameters:
i - the i
p - the p

setVertexData

public void setVertexData(double[][] data)

setVertexData

public void setVertexData(int i,
                          double val)

setVertexData

public void setVertexData(int i,
                          double[] array)

setVertexData

public void setVertexData(int i,
                          int j,
                          double val)

toString

public java.lang.String toString()

translate

public void translate(Point3f offset)
Translate.

Parameters:
offset - the offset

transform

public void transform(Matrix m)
Transform.

Parameters:
m - the m

getTextureCoordinates

public double[][] getTextureCoordinates()
Gets the texture coordinates.

Returns:
the texture coordinates

setTextureCoordinates

public void setTextureCoordinates(double[][] textureCoords)
Sets the texture coordinates.

Parameters:
textureCoords - the new texture coordinates