f0469168503550c61e85b7e4ba5818e00f0ced42
[occt.git] / tests / bugs / iges / bug306
1 puts "================"
2 puts "OCC306"
3 puts "================"
4 puts ""
5 #############################################################################
6 ##After applying sewing on the model from the file TibTray_Size3.igs (see the attachment) one surface is not shaded.
7 #############################################################################
8
9 igesbrep [locate_data_file TibTray_Size3.igs] a *
10
11 tpcompound a
12 tclean a
13
14 sewing result a
15
16 checkshape result
17
18 vinit
19 vsetdispmode result 1
20 vdisplay result
21 vfit
22
23 set info [trinfo result]
24 regexp { +([-0-9.+eE]+) +triangles} $info full tri
25 regexp { +([-0-9.+eE]+) +nodes} $info full nod
26
27 if { ($tri != 6409 || $nod != 6195) } {
28     puts "Shading problem may be, nb tri & nod"
29
30
31 checkmaxtol result -ref 0.92213088179312575
32 checknbshapes result -shell 1
33 checkfreebounds result 265
34 checkview -display result -3d -path ${imagedir}/${test_image}.png