0027126: Create command checktrinfo to verify meshes
[occt.git] / tests / bugs / vis / bug26719_1
CommitLineData
7479f643 1puts "============"
2puts "CR26719"
3puts "============"
4puts ""
5
6##########################################################################################
7puts "Visualization - cannot pick zoom persistent object"
8##########################################################################################
9
10pload VISUALIZATION MODELING
11
12vinit
13vsetdispmode 1
14
15restore $env(CASROOT)/data/occ/face1.brep f
16vdisplay f
17box b1 50 50 50
18vdisplay b1 -trsfPers zoom -trsfPersPos 0 0 0
19
20vviewparams -scale 588.7 -proj 0.69 -0.64 -0.38
21vviewparams -up -0.16 -0.32 0.93 -at -0.47 -0.042 0.4
22vviewparams -eye 0.7 -1.14 -0.17
23
24# move cursor to the box and check if is highlighted
25# with dynamic highlight color, check that the face is
26# not highlighted
27vmoveto 280 290
28if {[vreadpixel 290 297 name] != "CYAN1 1"} {
29 puts "ERROR: zoom persistent box is not highlighted dynamically!"
30}
31if {[vreadpixel 372 210 name] != "GOLDENROD1 1"} {
32 puts "ERROR: the shape behind zoom persistent object was highlighted instead!"
33}
34vdump ${imagedir}/${casename}_1.png
35
36vmoveto 0 0
37
38vviewparams -scale 689.79 -proj 0.78 0.63 -0.00067
39vviewparams -up -0.13 0.16 -0.98 -at -0.36 -0.016 0.31
40vviewparams -eye 0.96 1.053 0.31
41
42# check if the depth is calculated correctly on border points
43# of the objects
44
45# move to a point on the box and check if it
46# will be highlighted dynamically
47vmoveto 264 135
48if {[vreadpixel 276 142 name] != "CYAN1 1"} {
49 puts "ERROR: zoom persistent box is not highlighted dynamically in precision test!"
50}
51if {[vreadpixel 243 123 name] != "LIGHTGOLDENROD1 1"} {
52 puts "ERROR: the shape behind zoom persistent object was highlighted instead in precision test!"
53}
54vdump ${imagedir}/${casename}_2.png
55vmoveto 0 0
56
57# move to a point on the face and check if it
58# will be highlighted dynamically
59vmoveto 263 135
60if {[vreadpixel 276 142 name] != "GOLDENROD2 1"} {
61 puts "ERROR: zoom persistent box is highlighted instead in precision test!"
62}
63if {[vreadpixel 243 123 name] != "CYAN1 1"} {
64 puts "ERROR: the shape behind zoom persistent object was not highlighted dynamically in precision test!"
65}
66vdump ${imagedir}/${casename}_3.png
67
5747059b 68checkview -screenshot -3d -path ${imagedir}/${test_image}.png