0027146: Create command checkplatform
[occt.git] / tests / bugs / vis / bug22188
1 puts "TODO OCC11111 ALL: Error: Number of triangles"
2 puts "TODO OCC11111 ALL: Error: Number of nodes"
3 puts "TODO OCC11111 ALL: Error: Maximal deflection"
4
5 puts "============"
6 puts "OCC22188"
7 puts "============"
8 puts ""
9 #######################################################################
10 # Visualization of solid fails (in BRepMesh_FastDiscretFace) 
11 #######################################################################
12
13 set BugNumber OCC22188
14
15 restore [locate_data_file OCC22188.brep] result
16 tclean result
17
18 vinit
19 vdisplay result
20 vsetdispmode 1
21 vfit
22
23 if { [checkplatform -windows] }  {
24     set good_tri  6114
25     set good_nod  3080
26     set good_defl 0.50050406431775729
27 } else {
28     set good_tri  6148
29     set good_nod  3097
30     set good_defl 0.5153628044287929
31 }
32
33 checktrinfo result -tri ${good_tri} -nod ${good_nod} -defl ${good_defl} -tol_rel_defl 0.001 -tol_rel_tri 0.001 -tol_rel_nod 0.001
34 checkprops result -s 32416.7
35 checkshape result
36 checknbshapes result -vertex 2 -edge 3 -wire 1 -face 1 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 9
37 checkview -screenshot -3d -path ${imagedir}/${test_image}.png