5 #######################################################################
6 # Visualization - revise design and implementation of connected Interactive Objects
7 #######################################################################
9 vfont add [locate_data_file DejaVuSans.ttf] SansFont
11 pload MODELING VISUALIZATION
12 box o1 -10 -10 -5 1 1 10
13 box o2 10 10 -5 1 1 10
23 vdrawtext tb1 "b1" -pos 0 -3 3 -color 1.0 0.098 0.098 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect regular -font SansFont
24 vdrawtext tb2 "b2" -pos 3 0 3 -color 0.098 1.0 0.098 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect regular -font SansFont
25 vdrawtext bc_1 "bc_1" -pos 0 -9 3 -color 1.0 0.8823 0.8823 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect regular -font SansFont
26 vdrawtext bc_2 "bc_2" -pos 3 -6 3 -color 1.0 0.8823 0.8823 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect regular -font SansFont
28 set anImage ${imagedir}/${casename}_2_1.png
31 vsetmaterial b1 b2 plastic
33 vsetcolor b2 tb2 GREEN
34 set anImage ${imagedir}/${casename}_2_2.png
37 vsetlocation b1 0 -3 0
38 vconnect bc 0 -6 0 b1 b2 tb1 tb2
39 set anImage ${imagedir}/${casename}_2_3.png