maspack.geometry
Class TetgenTessellator
java.lang.Object
maspack.geometry.TetgenTessellator
public class TetgenTessellator
- extends java.lang.Object
Method Summary |
void |
buildFromMesh(double[] pntCoords,
int[] faceIndices,
int numFaces,
double quality)
|
void |
buildFromMesh(PolygonalMesh mesh,
double quality)
|
void |
buildFromMeshAndPoints(double[] pntCoords,
int[] faceIndices,
int numFaces,
double quality,
double[] addCoords,
int numAddPoints)
|
void |
buildFromMeshAndPoints(double[] pntCoords,
int[] faceIndices,
int numFaces,
double quality,
double[] addCoords,
int addCoordsOffset,
int numAddPoints)
|
void |
buildFromMeshAndPoints(PolygonalMesh mesh,
double quality,
Point3d[] includePoints)
|
int |
buildFromPoints(double[] coords)
|
int |
buildFromPoints(Point3d[] pnts)
|
boolean |
checkConvexHull(java.io.PrintStream ps,
double tol)
|
void |
dispose()
|
void |
finalize()
|
double[] |
get1DCoords()
|
int[] |
get1DIndices()
|
double |
getCharacteristicLength()
|
int |
getDimension()
|
int[] |
getHullFaces()
|
double[] |
getPointCoords()
|
Point3d[] |
getPoints()
|
RigidTransform3d |
getReductionTransform()
|
int[] |
getTets()
Returns the vertex indices of all the tetrahedra in this tessallation. |
void |
refineMesh(double[] nodeCoords,
int numNodes,
int[] tetIndices,
int numTets,
double quality)
|
void |
refineMesh(double[] nodeCoords,
int numNodes,
int[] tetIndices,
int numTets,
double quality,
double[] addCoords,
int numAddPoints)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TetgenTessellator
public TetgenTessellator()
buildFromPoints
public int buildFromPoints(Point3d[] pnts)
buildFromPoints
public int buildFromPoints(double[] coords)
refineMesh
public void refineMesh(double[] nodeCoords,
int numNodes,
int[] tetIndices,
int numTets,
double quality)
refineMesh
public void refineMesh(double[] nodeCoords,
int numNodes,
int[] tetIndices,
int numTets,
double quality,
double[] addCoords,
int numAddPoints)
buildFromMeshAndPoints
public void buildFromMeshAndPoints(PolygonalMesh mesh,
double quality,
Point3d[] includePoints)
buildFromMesh
public void buildFromMesh(PolygonalMesh mesh,
double quality)
buildFromMeshAndPoints
public void buildFromMeshAndPoints(double[] pntCoords,
int[] faceIndices,
int numFaces,
double quality,
double[] addCoords,
int numAddPoints)
buildFromMeshAndPoints
public void buildFromMeshAndPoints(double[] pntCoords,
int[] faceIndices,
int numFaces,
double quality,
double[] addCoords,
int addCoordsOffset,
int numAddPoints)
buildFromMesh
public void buildFromMesh(double[] pntCoords,
int[] faceIndices,
int numFaces,
double quality)
getHullFaces
public int[] getHullFaces()
getTets
public int[] getTets()
- Returns the vertex indices of all the tetrahedra in this tessallation.
If
idxs
is the array returned by this method, then the
length of idxs
is four times the number of tetrahedra, with
the vertex indices of the first tetrahedron given by
idxs[0]
, idxs[1]
, idxs[2]
, and
idxs[3]
, etc.
The vertices are ordered such that if v0 is the first vertex,
v1, v2, and v3 are arranged counter-clockwise about the outward-facing
normal of their face.
- Returns:
- vertices for the tetrahedra in this tessellation.
getPointCoords
public double[] getPointCoords()
get1DCoords
public double[] get1DCoords()
get1DIndices
public int[] get1DIndices()
getPoints
public Point3d[] getPoints()
getCharacteristicLength
public double getCharacteristicLength()
checkConvexHull
public boolean checkConvexHull(java.io.PrintStream ps,
double tol)
getDimension
public int getDimension()
getReductionTransform
public RigidTransform3d getReductionTransform()
dispose
public void dispose()
finalize
public void finalize()
- Overrides:
finalize
in class java.lang.Object