public class SurfaceMeshIntersectorTest extends UnitTest
Modifier and Type | Class and Description |
---|---|
static class |
SurfaceMeshIntersectorTest.TestInfo |
Constructor and Description |
---|
SurfaceMeshIntersectorTest(int randomSeed) |
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,
SurfaceMeshIntersector smi,
boolean clockwise) |
void |
closedContourTests() |
void |
crownCylinderTests() |
void |
crownTopBoxTests() |
static int[] |
getFaceIndices(java.util.Collection<Face> faces) |
ContactInfo |
getLastContactInfo() |
PolygonalMesh |
getLastIMesh() |
PolygonalMesh |
getLastMesh0() |
PolygonalMesh |
getLastMesh1() |
RigidTransform3d |
getLastMeshToWorld0() |
RigidTransform3d |
getLastMeshToWorld1() |
PolygonalMesh |
getLastUMesh() |
boolean |
getSaveTestResults() |
java.lang.String |
getTestFailFileName() |
static int[] |
getVertexIndices(PenetrationRegion region) |
static void |
main(java.lang.String[] args) |
void |
miscTests() |
void |
openContourTests() |
void |
perturbedPlateTests() |
boolean |
regionEqualsCheck(PenetrationRegion region,
int[] checkContours,
int[] checkVertices,
java.util.ArrayList<IntersectionContour> contours) |
static SurfaceMeshIntersector.CSG |
scanProblem(ReaderTokenizer rtok,
PolygonalMesh mesh0,
PolygonalMesh mesh1,
SurfaceMeshIntersectorTest.TestInfo tinfo) |
static SurfaceMeshIntersector.CSG |
scanProblem(java.lang.String fileName,
PolygonalMesh mesh0,
PolygonalMesh mesh1,
SurfaceMeshIntersectorTest.TestInfo tinfo) |
void |
setSaveTestResults(boolean enable) |
void |
setTestFailFileName(java.lang.String name) |
void |
simpleBoxTests() |
void |
singleFaceContourTests() |
void |
singleFaceTests()
Special tests that involve penetration regions consisting of a single
face that contacts the contour at only the edges or vertices.
|
void |
specialTests() |
void |
test() |
void |
testContacts(PolygonalMesh mesh0,
PolygonalMesh mesh1,
RigidTransform3d TBW,
RigidTransform3d T10,
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[][] regions0Check,
int[][] regions1Check,
double[] regions0AreaCheck,
double[] regions1AreaCheck,
double[]... contoursCheck) |
void |
testContacts(PolygonalMesh mesh0,
PolygonalMesh mesh1,
SurfaceMeshIntersectorTest.TestInfo tinfo) |
void |
torusTests() |
static void |
writeProblem(java.io.PrintWriter pw,
PolygonalMesh mesh0,
PolygonalMesh mesh1,
SurfaceMeshIntersectorTest.TestInfo tinfo) |
static void |
writeProblem(java.io.PrintWriter pw,
PolygonalMesh mesh0,
PolygonalMesh mesh1,
SurfaceMeshIntersectorTest.TestInfo tinfo,
SurfaceMeshIntersector.CSG csgOp) |
static void |
writeProblem(java.lang.String fileName,
PolygonalMesh mesh0,
PolygonalMesh mesh1,
SurfaceMeshIntersectorTest.TestInfo tinfo) |
static void |
writeProblem(java.lang.String fileName,
PolygonalMesh mesh0,
PolygonalMesh mesh1,
SurfaceMeshIntersectorTest.TestInfo tinfo,
SurfaceMeshIntersector.CSG csgOp) |
check, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkNormedEquals, checkNormedEquals, getSilent, printUsageAndExit, runtest, setSilent
public boolean getSaveTestResults()
public void setSaveTestResults(boolean enable)
public java.lang.String getTestFailFileName()
public void setTestFailFileName(java.lang.String name)
public PolygonalMesh getLastMesh0()
public PolygonalMesh getLastMesh1()
public RigidTransform3d getLastMeshToWorld0()
public RigidTransform3d getLastMeshToWorld1()
public PolygonalMesh getLastIMesh()
public PolygonalMesh getLastUMesh()
public ContactInfo getLastContactInfo()
public static void writeProblem(java.lang.String fileName, PolygonalMesh mesh0, PolygonalMesh mesh1, SurfaceMeshIntersectorTest.TestInfo tinfo) throws java.io.IOException
java.io.IOException
public static void writeProblem(java.lang.String fileName, PolygonalMesh mesh0, PolygonalMesh mesh1, SurfaceMeshIntersectorTest.TestInfo tinfo, SurfaceMeshIntersector.CSG csgOp) throws java.io.IOException
java.io.IOException
public static void writeProblem(java.io.PrintWriter pw, PolygonalMesh mesh0, PolygonalMesh mesh1, SurfaceMeshIntersectorTest.TestInfo tinfo) throws java.io.IOException
java.io.IOException
public static void writeProblem(java.io.PrintWriter pw, PolygonalMesh mesh0, PolygonalMesh mesh1, SurfaceMeshIntersectorTest.TestInfo tinfo, SurfaceMeshIntersector.CSG csgOp) throws java.io.IOException
java.io.IOException
public static SurfaceMeshIntersector.CSG scanProblem(java.lang.String fileName, PolygonalMesh mesh0, PolygonalMesh mesh1, SurfaceMeshIntersectorTest.TestInfo tinfo) throws java.io.IOException
java.io.IOException
public static SurfaceMeshIntersector.CSG scanProblem(ReaderTokenizer rtok, PolygonalMesh mesh0, PolygonalMesh mesh1, SurfaceMeshIntersectorTest.TestInfo tinfo) throws java.io.IOException
java.io.IOException
public static int[] getVertexIndices(PenetrationRegion region)
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, SurfaceMeshIntersector smi, boolean clockwise)
public void testContacts(PolygonalMesh mesh0, PolygonalMesh mesh1, maspack.collision.SurfaceMeshIntersectorTest.RandomTransform rand, int ntests, int nperturb, int[][] regions0Check, int[][] regions1Check, double[] regions0AreaCheck, double[] regions1AreaCheck, double[]... contoursCheck)
public void testContacts(PolygonalMesh mesh0, PolygonalMesh mesh1, RigidTransform3d TBW, RigidTransform3d T10, int[][] regions0Check, int[][] regions1Check, double[] regions0AreaCheck, double[] regions1AreaCheck, double[]... contoursCheck)
public void testContacts(PolygonalMesh mesh0, PolygonalMesh mesh1, SurfaceMeshIntersectorTest.TestInfo tinfo)
public void specialTests()
public void singleFaceTests()
public void simpleBoxTests()
public void torusTests()
public void singleFaceContourTests()
public void crownTopBoxTests()
public void crownCylinderTests()
public void perturbedPlateTests()
public void miscTests()
public void closedContourTests()
public void openContourTests()
public static int[] getFaceIndices(java.util.Collection<Face> faces)
public static void main(java.lang.String[] args)