1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-20 12:45:50 +03:00
occt/tests/bugs/vis/bug280_3
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

33 lines
470 B
Plaintext
Executable File

puts "========"
puts "OCC280"
puts "3. Fitall on perspective view does not fit all properly"
puts "========"
vinit
box b 100 900 300
vdisplay b
vsetdispmode b 1
OCC280 0 1
set x_coord 10
set y_coord 240
puts "Before View->FitAll()"
QAUpdateLights
checkcolor $x_coord $y_coord 0 0 0
vfit
puts "After View->FitAll()"
QAUpdateLights
checkcolor $x_coord $y_coord 0.78 0.55 0.9
if { $stat != 1 } {
puts "Error : Function vfit works wrongly"
}
set only_screen 1