7479f643 |
1 | puts "============" |
ba00aab7 |
2 | puts "0026719: Visualization - cannot pick zoom persistent object" |
7479f643 |
3 | puts "============" |
4 | puts "" |
5 | |
7479f643 |
6 | pload VISUALIZATION MODELING |
7 | |
ba00aab7 |
8 | vinit View1 |
7479f643 |
9 | vsetdispmode 1 |
10 | |
4b3541c6 |
11 | restore [locate_data_file face1.brep] f |
7479f643 |
12 | vdisplay f |
91d96372 |
13 | box b1 25 25 25 |
7479f643 |
14 | vdisplay b1 -trsfPers zoom -trsfPersPos 0 0 0 |
15 | |
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 |
19 | |
20 | # move cursor to the box and check if is highlighted |
21 | # with dynamic highlight color, check that the face is |
22 | # not highlighted |
23 | vmoveto 280 290 |
ba00aab7 |
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!" } |
7479f643 |
26 | vdump ${imagedir}/${casename}_1.png |
27 | |
28 | vmoveto 0 0 |
29 | |
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 |
33 | |
34 | # check if the depth is calculated correctly on border points |
35 | # of the objects |
36 | |
37 | # move to a point on the box and check if it |
38 | # will be highlighted dynamically |
39 | vmoveto 264 135 |
91d96372 |
40 | |
ba00aab7 |
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!" } |
7479f643 |
43 | vdump ${imagedir}/${casename}_2.png |
44 | vmoveto 0 0 |
45 | |
46 | # move to a point on the face and check if it |
47 | # will be highlighted dynamically |
91d96372 |
48 | vmoveto 259 135 |
ba00aab7 |
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!" } |
7479f643 |
51 | vdump ${imagedir}/${casename}_3.png |