fileMeshTest.ofs 966 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
var file = @FILEPLUGIN@.loadObject("@OPENFLIPPER_TEST_FILES@/@TEST_FILE@");

var name           = datacontrol.getObjectName(file);
var vertexCount    = infomeshobject.vertexCount(file);
var edgeCount      = infomeshobject.edgeCount(file);
var faceCount      = infomeshobject.faceCount(file);
var componentCount = infomeshobject.componentCount(file)

var groupCount     = datacontrol.groupCount();


printToFile("@OUTPUT_TEST_DATA_FILE@","TESTNAME=@TESTNAME@");
printToFile("@OUTPUT_TEST_DATA_FILE@","LOADEDFILE=@OPENFLIPPER_TEST_FILES@/@TEST_FILE@");
printToFile("@OUTPUT_TEST_DATA_FILE@","OBJECTNAME=",name);
printToFile("@OUTPUT_TEST_DATA_FILE@","VERTEXCOUNT=",vertexCount);
printToFile("@OUTPUT_TEST_DATA_FILE@","EDGECOUNT=",edgeCount);
printToFile("@OUTPUT_TEST_DATA_FILE@","FACECOUNT=",faceCount);
printToFile("@OUTPUT_TEST_DATA_FILE@","COMPONENTCOUNT=",componentCount);
printToFile("@OUTPUT_TEST_DATA_FILE@","GROUPCOUNT=",groupCount);

core.exitApplication();