3 puts "Visualization - selection does not work after closing one of local contexts in stack"
7 pload VISUALIZATION MODELING QAcommands
15 vaspects b -setWidth 2
26 # open local ctx with face selection enabled
28 vmoveto $pick_face_x $pick_face_y
29 if {[vreadpixel $edge_x $edge_y name] != "CYAN1 1"} {
30 puts "ERROR: Can not select face in local context 1"
35 # open local ctx with vertex selection enabled
36 set aVertIdx [OCC26945_open 1]
37 vmoveto $pick_vert_x $pick_vert_y
38 if {[vreadpixel $vert_x $vert_y name] != "CYAN1 1"} {
39 puts "ERROR: Can not select vertex in local context 2"
44 # open local ctx with edge selection enabled
45 set anEdgeIdx [OCC26945_open 2]
46 vmoveto $edge_x $edge_y
47 if {[vreadpixel $edge_x $edge_y name] != "CYAN1 1"} {
48 puts "ERROR: Can not select edge in local context 3"
53 # close local ctx with vertex selection enabled.
54 # edge selection should be active.
55 OCC26945_close $aVertIdx
56 vmoveto $edge_x $edge_y
57 if {[vreadpixel $edge_x $edge_y name] != "CYAN1 1"} {
58 puts "ERROR: Can not select edge after closing local context 2"
63 # close local ctx with edge selection enabled.
64 # face selection should be active.
65 OCC26945_close $anEdgeIdx
66 vmoveto $pick_face_x $pick_face_y
67 if {[vreadpixel $edge_x $edge_y name] != "CYAN1 1"} {
68 puts "ERROR: Can not select face after closing local context 3"
71 checkview -screenshot -3d -path ${imagedir}/${test_image}.png