6 ##########################################################################################
7 puts "Visualization - cannot pick zoom persistent object"
8 ##########################################################################################
10 pload VISUALIZATION MODELING
15 restore [locate_data_file face1.brep] f
18 vdisplay b1 -trsfPers zoom -trsfPersPos 0 0 0
20 vviewparams -scale 588.7 -proj 0.69 -0.64 -0.38
21 vviewparams -up -0.16 -0.32 0.93 -at -0.47 -0.042 0.4
22 vviewparams -eye 0.7 -1.14 -0.17
24 # move cursor to the box and check if is highlighted
25 # with dynamic highlight color, check that the face is
28 if {[vreadpixel 297 297 name] != "CYAN1 1"} {
29 puts "ERROR: zoom persistent box is not highlighted dynamically!"
31 if {[vreadpixel 372 210 name] != "GOLDENROD1 1"} {
32 puts "ERROR: the shape behind zoom persistent object was highlighted instead!"
34 vdump ${imagedir}/${casename}_1.png
38 vviewparams -scale 689.79 -proj 0.78 0.63 -0.00067
39 vviewparams -up -0.13 0.16 -0.98 -at -0.36 -0.016 0.31
40 vviewparams -eye 0.96 1.053 0.31
42 # check if the depth is calculated correctly on border points
45 # move to a point on the box and check if it
46 # will be highlighted dynamically
49 if {[vreadpixel 275 142 name] != "CYAN1 1"} {
50 puts "ERROR: zoom persistent box is not highlighted dynamically in precision test!"
52 if {[vreadpixel 243 123 name] != "LIGHTGOLDENROD1 1"} {
53 puts "ERROR: the shape behind zoom persistent object was highlighted instead in precision test!"
55 vdump ${imagedir}/${casename}_2.png
58 # move to a point on the face and check if it
59 # will be highlighted dynamically
61 if {[vreadpixel 275 142 name] != "GOLDENROD3 1"} {
62 puts "ERROR: zoom persistent box is highlighted instead in precision test!"
64 if {[vreadpixel 243 123 name] != "CYAN1 1"} {
65 puts "ERROR: the shape behind zoom persistent object was not highlighted dynamically in precision test!"
67 vdump ${imagedir}/${casename}_3.png
69 checkview -screenshot -3d -path ${imagedir}/${test_image}.png