smoother_c0_normal_10.ofs 858 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17


var input     = core.loadObject("@OPENFLIPPER_TEST_INPUT_FILE@");
var reference = core.loadObject("@OPENFLIPPER_TEST_REFERENCE_FILE@");

smoother.smooth(input,10,"normal","C0");

meshcompare.compare(reference,input);

printToFile("@OUTPUT_TEST_DATA_FILE@","TEST=@TESTNAME@");
printToFile("@OUTPUT_TEST_DATA_FILE@","LOADEDFILE=@OPENFLIPPER_TEST_INPUT_FILE@");
printToFile("@OUTPUT_TEST_DATA_FILE@","MAXIMALDISTANCE_DOUBLE=",meshcompare.lastMaximalDistance());
printToFile("@OUTPUT_TEST_DATA_FILE@","MAXIMALNORMALDEVIATION_DOUBLE=",meshcompare.lastMaximalNormalDeviation());
printToFile("@OUTPUT_TEST_DATA_FILE@","MAXIMALMEANCURVATUREDEVIATION_DOUBLE=",meshcompare.lastMaximalMeanCurvatureDeviation());
printToFile("@OUTPUT_TEST_DATA_FILE@","MAXIMALGAUSSCURVATUREDEVIATION_DOUBLE=",meshcompare.lastMaximalGaussCurvatureDeviation());

core.exitApplication();