0032208: Tests - refactor visualization tests to cover several graphic drivers
[occt.git] / tests / v3d / trsf / bug24837_2
CommitLineData
0717ddc1 1puts "============"
0d828ac8 2puts "CR24837_2: Visualization - revise design and implementation of connected Interactive Objects"
0717ddc1 3puts "============"
4puts ""
0717ddc1 5
0d828ac8 6pload MODELING VISUALIZATION
6fb1a930 7vfont add [locate_data_file DejaVuSans.ttf] SansFont
8
0717ddc1 9box o1 -10 -10 -5 1 1 10
10box o2 10 10 -5 1 1 10
11box b1 0 0 0 1 2 3
12box b2 3 0 0 3 2 1
13vinit View1
14vclear
15vtop
16vsetdispmode 0
17vdisplay o1 o2
18vdisplay b1 b2
19vfit
aaf8d6a9 20vdrawtext tb1 "b1" -pos 0 -3 3 -color FF1919 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect regular -font SansFont
21vdrawtext tb2 "b2" -pos 3 0 3 -color 19FF19 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect regular -font SansFont
22vdrawtext bc_1 "bc_1" -pos 0 -9 3 -color FFE1E1 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect regular -font SansFont
23vdrawtext bc_2 "bc_2" -pos 3 -6 3 -color FFE1E1 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect regular -font SansFont
0717ddc1 24vsetdispmode 1
25set anImage ${imagedir}/${casename}_2_1.png
26vdump ${anImage}
27
b6472664 28vsetmaterial b1 b2 plastic
29e2c6d2 29vsetcolor b1 tb1 RED
30vsetcolor b2 tb2 GREEN
0717ddc1 31set anImage ${imagedir}/${casename}_2_2.png
32vdump ${anImage}
33
34vsetlocation b1 0 -3 0
29e2c6d2 35vconnect bc 0 -6 0 b1 b2 tb1 tb2
0717ddc1 36set anImage ${imagedir}/${casename}_2_3.png
37vdump ${anImage}
3e9c1d1e 38
39vsensdis
40vdump $imagedir/${casename}_sensitive.png