Adding test cases from chl grid
[occt.git] / tests / bugs / modalg / bug358
CommitLineData
a87752f3 1puts "========================"
2puts " BUC60977 "
3puts " OCC358 "
4puts "========================"
5#####
6puts "The helical pipe is not shaded in AISViewer"
7#####
8
9restore [locate_data_file OCC358a.brep] f
352ffd73 10checkshape f
a87752f3 11
12restore [locate_data_file OCC358b.brep] w
352ffd73 13checkshape w
a87752f3 14
15pipe result w f
16
17vinit
18vdisplay result
19vfit
20vsetdispmode result 1
21# checkshape res
22# maxtolerance res
23
24set tri 0
25set nod 0
26
27set tri_info [trinfo result]
28regexp { +([-0-9.+eE]+) +triangles} $tri_info full tri
29regexp { +([-0-9.+eE]+) +nodes} $tri_info full nod
30
31if { $tri == 12966 && $nod == 6896} {
32 puts " OCC358 looks like OK"
33} else {
34 puts [format " tri= %s nod= %s " $tri $nod]
35 puts " OCC358 : Shady (bad shading)"
36}
37
38set square 24861.2
39set 2dviewer 0
40