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/bug23120
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

37 lines
736 B
Plaintext
Executable File

puts "============"
puts "OCC23120"
puts "============"
puts ""
###########################################################################
# Transform persistence is not restored
###########################################################################
pload QAcommands
box b1 10 20 30
box b2 10 20 30
ttranslate b2 50 50 0
vinit
vdisplay b1
# This line breaks normal rendering
# of all subsequently displayed presentations
vsettransmode b1 32 0 0 0 0 0
# This box is drawn incorrectly due to the bug
vdisplay b2
vfit
vsetdispmode 1
vzoom 0.5
vpan 100 0
set x_coord 300
set y_coord 130
checkcolor $x_coord $y_coord 0.78 0.55 0.9
if { $stat != 1 } {
puts "Error : Transform persistence is not restored"
}
set only_screen 1