5 #######################################################################
6 # Wrong shape result imported from IGES file
7 #######################################################################
13 igesread [locate_data_file CR22888-data.igs] a *
14 if { [regexp "This shape seems to be valid" [checkshape a]] != 1 } {
15 puts "Error : checkshape is faulty"
25 set inf_before [trinfo a_1]
28 set inf_after [trinfo a_1]
29 regexp { +([-0-9.+eE]+) +triangles} $inf_after full tri_after
30 regexp { +([-0-9.+eE]+) +nodes} $inf_after full nod_after
32 set color [QAGetPixelColor ${x1} ${y1}]
33 regexp {RED +: +([-0-9.+eE]+)} $color full rd
34 regexp {GREEN +: +([-0-9.+eE]+)} $color full gr
35 regexp {BLUE +: +([-0-9.+eE]+)} $color full bl
37 if { $rd == 0 || $gr == 0 || $bl == 0 } {
38 puts "Error : Face is not shaded (colors are not equal)"
41 if { $tri_after <= 0 || $nod_after <= 0 } {
42 puts "Error : Face is not shaded (number of nodes or triangles is wrong)"