public class TriTriIntersection
extends java.lang.Object
| Constructor and Description |
|---|
TriTriIntersection(Face f0,
Face f1,
Point3d[] _points)
Initialize with faces and intersection points.
|
TriTriIntersection(Face f0,
Face f1,
Point3d[] _points,
double[] coords)
Initialize with faces, intersection points, and point coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(TriTriIntersection isect,
java.lang.StringBuilder msg) |
Point3d |
getCurrentPosition(int idx)
Computes the current position of the
idx-th point, in world
coordinates, using its barycentric coordinates with respect to
face0. |
Vector2d[] |
getFace0Coords() |
Vector2d[] |
getFace1Coords() |
Vector2d |
getPointCoords(int idx)
Returns the stored barycentric coordinates of the
idx-th point. |
static void |
getState(DataBuffer data,
java.util.ArrayList<TriTriIntersection> isects) |
int |
numPoints() |
static java.util.ArrayList<TriTriIntersection> |
setStateArray(DataBuffer data,
PolygonalMesh mesh0,
PolygonalMesh mesh1) |
public TriTriIntersection(Face f0, Face f1, Point3d[] _points)
public Vector2d getPointCoords(int idx)
idx-th point.
It is assumed that points has been initialized; otherwise, null is returned.idxpublic Vector2d[] getFace0Coords()
public Vector2d[] getFace1Coords()
public Point3d getCurrentPosition(int idx)
idx-th point, in world
coordinates, using its barycentric coordinates with respect to
face0. This accounts for any possible displacement of the mesh vertices
since the intersection point was first computed. It is assumed that
points has been initialized; otherwise, null is returned.idxpublic int numPoints()
public boolean equals(TriTriIntersection isect, java.lang.StringBuilder msg)
public static void getState(DataBuffer data, java.util.ArrayList<TriTriIntersection> isects)
public static java.util.ArrayList<TriTriIntersection> setStateArray(DataBuffer data, PolygonalMesh mesh0, PolygonalMesh mesh1)