0027126: Create command checktrinfo to verify meshes
[occt.git] / tests / bugs / iges / bug22888
CommitLineData
09951da2 1puts "============"
2puts "CR22888"
3puts "============"
4puts ""
5#######################################################################
6# Wrong shape result imported from IGES file
7#######################################################################
8pload QAcommands
9
10set x1 166
11set y1 225
12
13igesread [locate_data_file CR22888-data.igs] a *
14if { [regexp "This shape seems to be valid" [checkshape a]] != 1 } {
15 puts "Error : checkshape is faulty"
16}
17
18explode a f
19vinit
20vsetdispmode 0
21vdisplay a_1
22vfit
23vzfit
24tclean a_1
5d7a0489 25trinfo a_1
09951da2 26
27vsetdispmode a_1 1
5d7a0489 28
29checktrinfo a_1 -tri -nod
09951da2 30
ccadc126 31set color [vreadpixel ${x1} ${y1} rgb]
32set rd [lindex $color 0]
33set gr [lindex $color 1]
34set bl [lindex $color 2]
09951da2 35
36if { $rd == 0 || $gr == 0 || $bl == 0 } {
37 puts "Error : Face is not shaded (colors are not equal)"
38}
39
5747059b 40checkview -screenshot -3d -path ${imagedir}/${test_image}.png