public class TetgenTessellator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NATIVE_LIB |
Constructor and Description |
---|
TetgenTessellator() |
Modifier and Type | Method and Description |
---|---|
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) |
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) |
public int buildFromPoints(Point3d[] pnts)
public int buildFromPoints(double[] coords)
public void refineMesh(double[] nodeCoords, int numNodes, int[] tetIndices, int numTets, double quality)
public void refineMesh(double[] nodeCoords, int numNodes, int[] tetIndices, int numTets, double quality, double[] addCoords, int numAddPoints)
public void buildFromMeshAndPoints(PolygonalMesh mesh, double quality, Point3d[] includePoints)
public void buildFromMesh(PolygonalMesh mesh, double quality)
public void buildFromMeshAndPoints(double[] pntCoords, int[] faceIndices, int numFaces, double quality, double[] addCoords, int numAddPoints)
public void buildFromMeshAndPoints(double[] pntCoords, int[] faceIndices, int numFaces, double quality, double[] addCoords, int addCoordsOffset, int numAddPoints)
public void buildFromMesh(double[] pntCoords, int[] faceIndices, int numFaces, double quality)
public int[] getHullFaces()
public int[] getTets()
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.
public double[] getPointCoords()
public double[] get1DCoords()
public int[] get1DIndices()
public Point3d[] getPoints()
public double getCharacteristicLength()
public boolean checkConvexHull(java.io.PrintStream ps)
public int getDimension()
public RigidTransform3d getReductionTransform()
public void dispose()
public void finalize()
finalize
in class java.lang.Object