0024224: Suspicious logics in changing clipping planes at OpenGl_Structure
[occt.git] / tests / bugs / vis / bug23120
CommitLineData
e84189c5 1puts "============"
2puts "OCC23120"
3puts "============"
4puts ""
5###########################################################################
6# Transform persistence is not restored
7###########################################################################
8
e84189c5 9box b1 10 20 30
10box b2 10 20 30
11ttranslate b2 50 50 0
12vinit
13vdisplay b1
14# This line breaks normal rendering
15# of all subsequently displayed presentations
16vsettransmode b1 32 0 0 0 0 0
17# This box is drawn incorrectly due to the bug
18vdisplay b2
19vfit
20vsetdispmode 1
21vzoom 0.5
22vpan 100 0
23
f1aa2b62 24set x_coord 300
25set y_coord 130
e84189c5 26
f1aa2b62 27checkcolor $x_coord $y_coord 0.78 0.55 0.9
e84189c5 28
f1aa2b62 29if { $stat != 1 } {
e84189c5 30 puts "Error : Transform persistence is not restored"
e84189c5 31}
32
82cbc512 33set only_screen 1
f1aa2b62 34