0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / v3d / viewcube / default
CommitLineData
2108d9a2 1puts "=================================="
2puts "0028954: Visualization - implement interactive object AIS_ViewCube for camera manipulations"
3puts "Display and erase with default settings"
4puts "=================================="
5
6vclear
7vinit View1
8
9box b 15 20 70
10vdisplay -dispMode 1 b
11vaxo
12vfit
13vviewcube vc -fixedAnimation 1 -duration 0
14
15vmoveto 70 340
aaf8d6a9 16if {[vreadpixel 70 340 name rgb] != "CYAN"} { puts "Error: Highlighting of view cube Side is wrong." }
2108d9a2 17vmoveto 0 0
18vdump $imagedir/${casename}_axo.png
19
20# check FRONT side
21vselect 70 340
22if {[vreadpixel 255 300 name rgb] != "BLACK"} { puts "Error: Position of FRONT camera is wrong." }
23vdump $imagedir/${casename}_side.png
24
25# check FRONT/TOP edge
26vselect 100 270
ba00aab7 27if {[vreadpixel 100 300 name rgb] != "GRAY52"} { puts "Error: Position of FRONT-TOP camera is wrong." }
28if {[vreadpixel 100 310 name rgb] != "CYAN"} { puts "Error: Position of FRONT-TOP camera is wrong." }
2108d9a2 29vdump $imagedir/${casename}_edge.png
30
31# Check vertex
32vselect 140 310
ba00aab7 33if {[vreadpixel 100 290 name rgb] != "GRAY47"} { puts "Error: Position of TOP-FRONT-RIGHT camera is wrong." }
34if {[vreadpixel 100 310 name rgb] != "CYAN"} { puts "Error: Position of TOP-FRONT-RIGHT camera is wrong." }
35if {[vreadpixel 100 320 name rgb] != "GRAY59"} { puts "Error: Position of TOP-FRONT-RIGHT camera is wrong." }
2108d9a2 36vdump $imagedir/${casename}_corner.png