1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-01 10:26:12 +03:00
occt/tests/bugs/vis/bug185
apn f1aa2b6272 Adding new testing cases for chl grid
Adding procedures checkcolor and checkpoint.
Modified test cases which are used QAGetPixelColor or QAAISGetPixelColor2d
Allow using command QAAISGetPixelColor2d on WNT
Rename test case tests/bugs/vis/bug19619 to pro19619
Added test cases to modalg and moddata
2012-12-14 16:56:11 +04:00

40 lines
522 B
Plaintext
Executable File

puts "========"
puts "OCC185"
puts "========"
pload XDE
igesbrep [locate_data_file OCC185.igs] a *
tpcompound result
tclean result
vinit
vdisplay result
vfit
set x_coord 235
set y_coord 214
vsetdispmode result 1
QAUpdateLights
checkcolor $x_coord $y_coord 0.78 0.55 0.9
if { $stat != 1 } {
puts "Error : Shading is OFF, but should be ON"
}
vsetdispmode result 0
QAUpdateLights
checkcolor $x_coord $y_coord 0 1 0
if { $stat != 1 } {
puts "Error : Shading is ON, but should be OFF"
}
set only_screen 1