0027126: Create command checktrinfo to verify meshes
[occt.git] / tests / bugs / moddata_2 / bug258_2
index 9a2b9a3..957d4c1 100755 (executable)
@@ -15,12 +15,5 @@ vsetdispmode result 1
 vfit
 triangles result
 
-set info [trinfo result]
-regexp { +([-0-9.+eE]+) +triangles} $info full tri
-regexp { +([-0-9.+eE]+) +nodes} $info full nod
-
-if { $tri < 70 || $nod < 72 }  {
-  puts "Error (case 2) : here is shading problem"
-}
-
+checktrinfo result -tri 70 -nod 72
 checkview -screenshot -3d -path ${imagedir}/${test_image}.png