public class SurfaceMeshIntersectorTest extends UnitTest
Modifier and Type | Class and Description |
---|---|
static class |
SurfaceMeshIntersectorTest.TestInfo |
Constructor and Description |
---|
SurfaceMeshIntersectorTest() |
Modifier and Type | Method and Description |
---|---|
void |
checkRegions(java.lang.String msg,
int[][] regionsCheck,
double[] areasCheck,
java.util.ArrayList<PenetrationRegion> regions,
java.util.ArrayList<IntersectionContour> contours,
PolygonalMesh mesh,
boolean clockwise) |
static PolygonalMesh |
createLegoMesh(double wx,
double wy,
double wz,
java.lang.String... pattern) |
static int[] |
getFaceIndices(java.util.Collection<Face> faces) |
static void |
main(java.lang.String[] args) |
void |
perturbedPlateTests() |
boolean |
regionEqualsCheck(PenetrationRegion region,
int[] checkContours,
int[] checkVertices,
java.util.ArrayList<IntersectionContour> contours) |
static void |
scanProblem(java.lang.String fileName,
PolygonalMesh mesh0,
PolygonalMesh mesh1,
SurfaceMeshIntersectorTest.TestInfo tinfo) |
void |
simpleBoxTests() |
void |
singleFaceContourTests() |
void |
test() |
void |
testContacts(PolygonalMesh mesh0,
PolygonalMesh mesh1,
int[] insideCheck0,
int[] insideCheck1,
SurfaceMeshIntersectorTest.TestInfo tinfo) |
void |
testContacts(PolygonalMesh mesh0,
PolygonalMesh mesh1,
RigidTransform3d TBW,
RigidTransform3d T10,
int[] insideCheck0,
int[] insideCheck1,
int[][] regions0Check,
int[][] regions1Check,
double[] regions0AreaCheck,
double[] regions1AreaCheck,
double[]... contoursCheck) |
void |
testContacts(PolygonalMesh mesh0,
PolygonalMesh mesh1,
maspack.collision.SurfaceMeshIntersectorTest.RandomTransform rand,
int ntests,
int nperturb,
int[] insideCheck0,
int[] insideCheck1,
int[][] regions0Check,
int[][] regions1Check,
double[] regions0AreaCheck,
double[] regions1AreaCheck,
double[]... contoursCheck) |
void |
torusTests() |
public static void scanProblem(java.lang.String fileName, PolygonalMesh mesh0, PolygonalMesh mesh1, SurfaceMeshIntersectorTest.TestInfo tinfo) throws java.io.IOException
java.io.IOException
public boolean regionEqualsCheck(PenetrationRegion region, int[] checkContours, int[] checkVertices, java.util.ArrayList<IntersectionContour> contours)
public void checkRegions(java.lang.String msg, int[][] regionsCheck, double[] areasCheck, java.util.ArrayList<PenetrationRegion> regions, java.util.ArrayList<IntersectionContour> contours, PolygonalMesh mesh, boolean clockwise)
public void testContacts(PolygonalMesh mesh0, PolygonalMesh mesh1, maspack.collision.SurfaceMeshIntersectorTest.RandomTransform rand, int ntests, int nperturb, int[] insideCheck0, int[] insideCheck1, int[][] regions0Check, int[][] regions1Check, double[] regions0AreaCheck, double[] regions1AreaCheck, double[]... contoursCheck)
public void testContacts(PolygonalMesh mesh0, PolygonalMesh mesh1, RigidTransform3d TBW, RigidTransform3d T10, int[] insideCheck0, int[] insideCheck1, int[][] regions0Check, int[][] regions1Check, double[] regions0AreaCheck, double[] regions1AreaCheck, double[]... contoursCheck)
public void testContacts(PolygonalMesh mesh0, PolygonalMesh mesh1, int[] insideCheck0, int[] insideCheck1, SurfaceMeshIntersectorTest.TestInfo tinfo)
public void simpleBoxTests()
public void torusTests()
public void singleFaceContourTests()
public void perturbedPlateTests()
public static int[] getFaceIndices(java.util.Collection<Face> faces)
public static PolygonalMesh createLegoMesh(double wx, double wy, double wz, java.lang.String... pattern)
public static void main(java.lang.String[] args)