puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_" puts "========" puts "OCC173" puts "(case 1)" puts "========" puts "" ########################################################### ## Impossible to change the material or the transparency of the attached BREP shape. ########################################################### restore [locate_data_file OCC173.brep] result puts [checkshape result] vinit result tclean vdisplay result vfit vsetdispmode result 1 set rd_ch 100000 set gr_ch 75686 set bl_ch 15294 QAUpdateLights set color1 [QAGetPixelColor 175 195] regexp {RED +: +([-0-9.+eE]+)} $color1 full rd1 regexp {GREEN +: +([-0-9.+eE]+)} $color1 full gr1 regexp {BLUE +: +([-0-9.+eE]+)} $color1 full bl1 set rd_int [expr int($rd1 * 1.e+05)] set gr_int [expr int($gr1 * 1.e+05)] set bl_int [expr int($bl1 * 1.e+05)] if { ${rd_int} != ${rd_ch} || ${gr_int} != ${gr_ch} || ${bl_int} != ${bl_ch} } { puts "Error : colors are not equal" puts "Error : Shading is missing in 3D Viewer" } ######################################################## vsetmaterial result COPPER QAUpdateLights set color2 [QAGetPixelColor 175 195] regexp {RED +: +([-0-9.+eE]+)} $color2 full rd2 regexp {GREEN +: +([-0-9.+eE]+)} $color2 full gr2 regexp {BLUE +: +([-0-9.+eE]+)} $color2 full bl2 if { ${rd2} == ${rd1} || ${gr2} == ${gr1} || ${bl2} == ${bl1} } { puts "Error : material of shape was NOT changed" } set only_screen 1