2 puts "0026719: Visualization - cannot pick zoom persistent object"
6 pload VISUALIZATION MODELING
11 restore [locate_data_file face1.brep] f
14 vdisplay b1 -trsfPers zoom -trsfPersPos 0 0 0
16 vviewparams -scale 588.7 -proj 0.69 -0.64 -0.38
17 vviewparams -up -0.16 -0.32 0.93 -at -0.47 -0.042 0.4
18 vviewparams -eye 0.7 -1.14 -0.17
20 # move cursor to the box and check if is highlighted
21 # with dynamic highlight color, check that the face is
24 if {[vreadpixel 297 297 -rgb -name] != "CYAN"} { puts "ERROR: zoom persistent box is not highlighted dynamically!" }
25 if {[vreadpixel 372 210 -rgb -name] != "GOLDENROD3"} { puts "ERROR: the shape behind zoom persistent object was highlighted instead!" }
26 vdump ${imagedir}/${casename}_1.png
30 vviewparams -scale 689.79 -proj 0.78 0.63 -0.00067
31 vviewparams -up -0.13 0.16 -0.98 -at -0.36 -0.016 0.31
32 vviewparams -eye 0.96 1.053 0.31
34 # check if the depth is calculated correctly on border points
37 # move to a point on the box and check if it
38 # will be highlighted dynamically
41 if {[vreadpixel 275 142 -rgb -name] != "CYAN"} { puts "ERROR: zoom persistent box is not highlighted dynamically in precision test!" }
42 if {[vreadpixel 243 123 -rgb -name] != "BURLYWOOD2"} { puts "ERROR: the shape behind zoom persistent object was highlighted instead in precision test!" }
43 vdump ${imagedir}/${casename}_2.png
46 # move to a point on the face and check if it
47 # will be highlighted dynamically
49 if {[vreadpixel 275 142 -rgb -name] != "DARKGOLDENROD"} { puts "ERROR: zoom persistent box is highlighted instead in precision test!" }
50 if {[vreadpixel 243 123 -rgb -name] != "CYAN"} { puts "ERROR: the shape behind zoom persistent object was not highlighted dynamically in precision test!" }
51 vdump ${imagedir}/${casename}_3.png