14c4193d |
1 | box b1 0 0 0 1 1 1 |
2 | box b2 2 0 0 1 1 1 |
3 | vclear |
4 | vinit View1 |
5 | vviewparams -scale 404 -proj 0.8 -0.16 0.5 -up -0.4 0.4 0.8 -at 1.5 0.5 0.5 |
d2e60688 |
6 | vselfilter -clear |
14c4193d |
7 | vselprops -pickStrategy first |
8 | vdisplay -dispMode 1 -highMode 1 b1 b2 |
9 | vfit |
10 | |
11 | vselmode b1 4 1 |
12 | vmoveto 220 220 |
13 | if { [vreadpixel 220 220 rgb name] != "TURQUOISE3" } { puts "Error: box b2 should be highlighted" } |
14 | |
d2e60688 |
15 | vselfilter -type FACE |
14c4193d |
16 | vmoveto 0 0 |
17 | vmoveto 220 220 |
aaf8d6a9 |
18 | if { [vreadpixel 150 150 rgb name] != "CYAN" } { puts "Error: face of box b1 should be highlighted" } |
14c4193d |
19 | |
20 | vselprops -pickStrategy topmost |
21 | vmoveto 0 0 |
22 | vmoveto 220 220 |
aaf8d6a9 |
23 | if { [vreadpixel 150 150 rgb name] == "CYAN" } { puts "Error: face of box b1 should NOT be highlighted" } |
14c4193d |
24 | |
25 | vmoveto 150 150 |
aaf8d6a9 |
26 | if { [vreadpixel 150 150 rgb name] != "CYAN" } { puts "Error: face of box b1 should be highlighted" } |