Integration part of tests of grid chl
[occt.git] / tests / bugs / modalg / bug291
1
2 puts "================= OCC291 ==================="
3
4 #################################################################
5 ## Some triangles of shading mesh are outside of shape boundaries. (See attached shape). 
6 #################################################################
7
8 restore [locate_data_file shading_171.brep] result
9 puts [checkshape result]
10
11 tclean result
12 vinit
13 vdisplay result
14 vsetdispmode result 1
15
16 isos result 0
17 triangles result
18
19       set tri 0
20       set nod 0
21 set tri_info [trinfo result]
22 regexp { +([-0-9.+eE]+) +triangles} $tri_info full tri
23 regexp { +([-0-9.+eE]+) +nodes} $tri_info full nod
24
25 #$tri == 395 && $nod == 350,aki251103.
26 if { $tri == 382 && $nod == 343 } {
27         puts " Warning:  OCC291  looks like OK, but visual checking is required !"
28 } else {
29         puts " Shady OCC291 : nb tri & nod changed"
30 }
31
32 set square 376.873
33 set 3dviewer 2