0027715: Visualization - turn off deprecated OpenGL fixed-function pipeline by default
[occt.git] / tests / bugs / vis / bug26076
1 puts "============"
2 puts "CR26076"
3 puts "============"
4 puts ""
5
6 ##########################################################################################
7 puts "Visualization - empty bounding box of a shape after closing local context"
8 ##########################################################################################
9
10 pload VISUALIZATION MODELING
11
12 vinit
13
14 box b1 1 1 1
15 box b2 4 5 6
16
17 # display box b1 in global context
18 vdisplay b1
19 # display box b2 in local context only
20 vdisplay -local b2
21
22 vfit
23
24 # display only box b1 by closing local context and erasing box b2
25 vdonly b1
26
27 vfit
28
29 # check that selection works properly
30 vmoveto 100 100
31 checkcolor 205 205 0 1 1
32
33 vdump ${imagedir}/${casename}.png