Skip to content
Snippets Groups Projects
Commit c828f629 authored by Radek Ošlejšek's avatar Radek Ošlejšek
Browse files

testing

parent cd1da557
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ public class EfficiencyTests { ...@@ -39,7 +39,7 @@ public class EfficiencyTests {
face1 = new HumanFace(faceFile2); face1 = new HumanFace(faceFile2);
face2 = new HumanFace(faceFile4); face2 = new HumanFace(faceFile4);
boolean relativeDist = true; boolean relativeDist = false;
boolean printDetails = false; boolean printDetails = false;
face1.getMeshModel().compute(new GaussianCurvatureVisitor(false)); // initialize everything, then measure face1.getMeshModel().compute(new GaussianCurvatureVisitor(false)); // initialize everything, then measure
...@@ -51,7 +51,6 @@ public class EfficiencyTests { ...@@ -51,7 +51,6 @@ public class EfficiencyTests {
printSymmetryPlane(face1, false, printDetails, false); printSymmetryPlane(face1, false, printDetails, false);
printSymmetryPlane(face1, false, printDetails, true); printSymmetryPlane(face1, false, printDetails, true);
/*
System.out.println(); System.out.println();
System.out.println(measureKdTreeCreation(face1) + "\tmsec:\tKd-tree creation of first face"); System.out.println(measureKdTreeCreation(face1) + "\tmsec:\tKd-tree creation of first face");
System.out.println(measureKdTreeCreation(face2) + "\tmsec:\tKd-tree creation of second face"); System.out.println(measureKdTreeCreation(face2) + "\tmsec:\tKd-tree creation of second face");
...@@ -67,7 +66,6 @@ public class EfficiencyTests { ...@@ -67,7 +66,6 @@ public class EfficiencyTests {
testAndPrint(face1, new HausdorffDistance(face2.getMeshModel(), Strategy.POINT_TO_POINT_ABSOLUTE, false, false, true), printDetails); testAndPrint(face1, new HausdorffDistance(face2.getMeshModel(), Strategy.POINT_TO_POINT_ABSOLUTE, false, false, true), printDetails);
testAndPrint(face1, new HausdorffDistance(face2.getMeshModel(), Strategy.POINT_TO_POINT, relativeDist, false, true), printDetails); testAndPrint(face1, new HausdorffDistance(face2.getMeshModel(), Strategy.POINT_TO_POINT, relativeDist, false, true), printDetails);
testAndPrint(face1, new HausdorffDistance(face2.getMeshModel(), Strategy.POINT_TO_TRIANGLE_APPROXIMATE, relativeDist, false, true), printDetails); testAndPrint(face1, new HausdorffDistance(face2.getMeshModel(), Strategy.POINT_TO_TRIANGLE_APPROXIMATE, relativeDist, false, true), printDetails);
*/
} }
protected static void testAndPrint(HumanFace face, HausdorffDistance vis, boolean printDetails) { protected static void testAndPrint(HumanFace face, HausdorffDistance vis, boolean printDetails) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment