0027715: Visualization - turn off deprecated OpenGL fixed-function pipeline by default
[occt.git] / tests / bugs / vis / bug24965
CommitLineData
bc677575 1puts "============"
2puts "OCC24966"
3puts "============"
4puts ""
5####################################################################################
6# Problem in local selection mode with selected objects staying in the viewer
7# Outdated entity owners remain selected after recompute of presentation in
8# local context.
9# The following cases are tested:
10# o Recompute should not clear per-object selection (neutral selection context).
11# o Recompute should clear per-owner selection (local selection context).
12####################################################################################
13
14set check_recomputed_x 227
15set check_recomputed_y 269
16set check_untouched_x 239
17set check_untouched_y 309
18
19vinit View1
20vpoint p1 100 100 0
21vpoint p2 150 150 0
22vpoint p3 100 150 0
23vplane pln1 p1 p2 p3
24veraseall
25vdisplay pln1 p1 p2 p3
26vselect 0 0 2500 2500
27vchangeplane pln1 x=100 y=100 z=200 dx=0.707 dy=0.707 dz=0.707
28vfit
29
30checkcolor $check_recomputed_x $check_recomputed_y 0.8 0.8 0.8
31if { $stat != 1 } {
32 puts "Error : Neutral selection of updated object is erased."
33}
34
35checkcolor $check_untouched_x $check_untouched_y 0.8 0.8 0.8
36if { $stat != 1 } {
37 puts "Error : Neutral selection of unmodified object is erased."
38}
39
40vinit View2
41vpoint p4 100 100 0
42vpoint p5 150 150 0
43vpoint p6 100 150 0
44vplane pln2 p4 p5 p6
45veraseall
46vdisplay -local pln2 p4 p5 p6
47vselect 0 0 2500 2500
48vchangeplane pln2 x=100 y=100 z=200 dx=0.707 dy=0.707 dz=0.707
49vfit
50
51checkcolor $check_recomputed_x $check_recomputed_y 0 1 0
52if { $stat != 1 } {
53 puts "Error : Local (renewed) selection of updated object is not updated."
54}
55
56checkcolor $check_untouched_x $check_untouched_y 0.8 0.8 0.8
57if { $stat != 1 } {
58 puts "Error : Local selection of unmodified object is erased."
59}
60
61vdump ${imagedir}/${casename}_View1.png
62vdump ${imagedir}/${casename}_View2.png