|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ModelTriangleMesh edu.jhu.ece.iacl.jist.structures.geom.EmbeddedSurface
public class 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 |
---|
protected double[][] textureCoords
protected double[][] vertexData
protected double[][] cellData
protected int[][] edgeTable
protected int[][] neighborVertexVertexTable
protected EmbeddedSurface.Face[][] neighborEdgeFaceTable
protected EmbeddedSurface.Face[][] neighborVertexFaceTable
protected EmbeddedSurface.Edge[] edges
protected EmbeddedSurface.Edge[][] neighborVertexEdgeTable
protected EmbeddedSurface.Face[] faces
protected EmbeddedSurface.Face[][] neighborFaceFaceTable
protected Point3f origin
protected Vector3f scale
Constructor Detail |
---|
public EmbeddedSurface(EmbeddedSurface mesh)
mesh
- the meshpublic EmbeddedSurface(EmbeddedSurface mesh, double[][] data)
mesh
- the meshdata
- the datapublic EmbeddedSurface(ModelTriangleMesh mesh)
mesh
- the meshpublic EmbeddedSurface(ModelTriangleMesh mesh, double[][] data)
mesh
- the meshdata
- the datapublic EmbeddedSurface(Point3f[] points, int[] indexes)
points
- the pointsindexes
- the indexespublic EmbeddedSurface(Point3f[] points, int[] indexes, double[][] data)
points
- the pointsindexes
- the indexesdata
- the datapublic EmbeddedSurface(Point3f[] points, Vector3f[] arg1, Color3f[] arg2, int[] arg3)
points
- the pointsarg1
- the arg1arg2
- the arg2arg3
- the arg3public EmbeddedSurface(Point3f[] points, Vector3f[] arg1, Color3f[] arg2, int[] arg3, double[][] data)
points
- the pointsarg1
- the arg1arg2
- the arg2arg3
- the arg3data
- the datapublic EmbeddedSurface(Point3f[] points, Vector3f[] arg1, Color4f[] arg2, int[] arg3)
points
- the pointsarg1
- the arg1arg2
- the arg2arg3
- the arg3public EmbeddedSurface(Point3f[] points, Vector3f[] arg1, Color4f[] arg2, int[] arg3, double[][] data)
points
- the pointsarg1
- the arg1arg2
- the arg2arg3
- the arg3data
- the datapublic EmbeddedSurface(Point3f[] points, Vector3f[] normals, int[] indexes)
points
- the pointsnormals
- the normalsindexes
- the indexespublic EmbeddedSurface(Point3f[] points, Vector3f[] normals, int[] indexes, double[][] data)
points
- the pointsnormals
- the normalsindexes
- the indexesdata
- the dataMethod Detail |
---|
public static java.util.Hashtable<java.lang.Long,EmbeddedSurface.Edge> buildEdgeHash(EmbeddedSurface.Edge[] edges)
edges
- the edges
public static EmbeddedSurface.Edge[] buildEdgeTable(ModelTriangleMesh mesh)
mesh
- the mesh
public static EmbeddedSurface.Face[] buildFaceTable(ModelTriangleMesh mesh, EmbeddedSurface.Edge[] edges, java.util.Hashtable<java.lang.Long,EmbeddedSurface.Edge> edgeHash)
mesh
- the meshedges
- the edgesedgeHash
- the edge hash
public static EmbeddedSurface.Face[][] buildNeighborEdgeFaceTable(ModelTriangleMesh mesh, EmbeddedSurface.Face[] faces, java.util.Hashtable<java.lang.Long,EmbeddedSurface.Edge> edgeHash, EmbeddedSurface.Edge[] edges)
mesh
- the meshfaces
- the facesedgeHash
- the edge hashedges
- the edges
public static EmbeddedSurface.Face[][] buildNeighborFaceFaceTable(ModelTriangleMesh mesh, EmbeddedSurface.Face[] faces, EmbeddedSurface.Face[][] neighborEdgeFaceTable)
mesh
- the meshfaces
- the facesneighborEdgeFaceTable
- the neighbor edge face table
public static EmbeddedSurface.Edge[][] buildNeighborVertexEdgeTable(int[][] neighborVertexTable, EmbeddedSurface.Edge[] edges, java.util.Hashtable<java.lang.Long,EmbeddedSurface.Edge> edgeHash)
neighborVertexTable
- the neighbor vertex tableedges
- the edgesedgeHash
- the edge hash
public void buildAllTables()
public void disposeAllTables()
public static EmbeddedSurface.Face[][] buildNeighborVertexFaceTable(EmbeddedSurface.Edge[][] neighborEdgeTable, EmbeddedSurface.Face[][] neighborFaceTable)
neighborEdgeTable
- the neighbor edge tableneighborFaceTable
- the neighbor face table
public static int[][] buildNeighborVertexVertexTable(ModelTriangleMesh mesh, EmbeddedSurface.Direction dir)
mesh
- triangle meshdir
- rotation direction
public static int getGenus(ModelTriangleMesh mesh)
mesh
- the mesh
public int[][] getEdgeTable()
public EmbeddedSurface.Face[][] getNeighborFaceFaceTable()
public int[][] getNeighborVertexVertexTable()
public EmbeddedSurface.Face[][] getNeighborEdgeFaceTable()
public EmbeddedSurface.Face[][] getNeighborVertexFaceTable()
public EmbeddedSurface.Edge[] getEdges()
public EmbeddedSurface.Edge[][] getNeighborVertexEdgeTable()
public EmbeddedSurface.Face[] getFaces()
public EmbeddedSurface clone()
public int compareTo(EmbeddedSurface surf)
public void convertToCartesian()
public void convertToSpherical()
public double[][] getCellData()
public Point3f getCenterOfMass()
public Point3f getCentroid(int fid)
fid
- the fid
public Point3f getCentroidAtOffset(int fid, int offset)
fid
- the fidoffset
- the offset
public EmbeddedSurface getEmbeddedSphere(int offset, boolean polar)
offset
- the offsetpolar
- the polar
public float getFaceArea(int fid)
fid
- the fid
public int getFaceCount()
public Point3f[] getFacePoints(int fid)
fid
- the fid
public int[] getFaceVertexIds(int fid)
fid
- the fid
public Point3f getInnerPoint(int i)
i
- the i
public Point3f getMax()
public float getMaxAngle(int fid)
fid
- the fid
public Point3f getMin()
public float getMinAngle(int fid)
fid
- the fid
public Vector3f getNormal(int i)
i
- the i
public long getNumberOfHoles()
public Point3f getOrigin()
public Point3f getOuterPoint(int i)
i
- the i
public Point3f getPointAtOffset(int i, int offset)
i
- the ioffset
- the offset
public Vector3f getScale()
protected double[] getStatistics(int i)
i
- the i
public double[] getStats()
public double getThickness(int i)
i
- the i
public Vector3f getVectorAtOffset(int i, int offset)
i
- the ioffset
- the offset
public Point3f getVertex(int i)
i
- the i
public double[] getVertexDoubleCopy()
public double[][] getVertexData()
public double[] getVertexData(int i)
public double getVertexDataAtOffset(int i, int offset)
i
- the ioffset
- the offset
public boolean hasEmbeddedData()
public Point3f midPoint(EmbeddedSurface.Edge e)
e
- the e
public double[] midValues(EmbeddedSurface.Edge e)
e
- the e
public void repairDegenerateMappings(float minDist, float perturbation)
minDist
- the min distperturbation
- the perturbationpublic void repairDegenerateTriangles(float minDist, float perturbation)
minDist
- the min distperturbation
- the perturbationpublic void resizeData(int dim)
dim
- the dimpublic void scaleData(float scalar)
scalar
- the scalarpublic void scaleVertices(float scalar)
scalar
- the scalarpublic void rotateVertices(float theta, float phi)
theta
- the thetaphi
- the phipublic void scaleVertices(float[] scalar)
scalar
- the scalarpublic void affineTransformVertices(Matrix3f m, Point3f t)
m
- the mt
- the tpublic void setCellData(double[][] cellData)
public void setColor(int i, java.awt.Color c)
i
- the ic
- the cpublic void setInnerPoint(int i, Point3f p)
i
- the ip
- the ppublic void setOrigin(Point3f scale)
scale
- the new originpublic void setOuterPoint(int i, Point3f p)
i
- the ip
- the ppublic void setScale(Vector3f scale)
scale
- the new scalepublic void setThickness(int i, double thick)
i
- the ithick
- the thickpublic void setVertex(int i, Tuple3f p)
i
- the ip
- the ppublic void setVertexData(double[][] data)
public void setVertexData(int i, double val)
public void setVertexData(int i, double[] array)
public void setVertexData(int i, int j, double val)
public java.lang.String toString()
public void translate(Point3f offset)
offset
- the offsetpublic void transform(Matrix m)
m
- the mpublic double[][] getTextureCoordinates()
public void setTextureCoordinates(double[][] textureCoords)
textureCoords
- the new texture coordinates
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |