1 puts "================================="
2 puts "0032182: Visualization - add Select3D_SensitiveSphere"
3 puts "Tests rectangular selection of Select3D_SenstiveSphere"
4 puts "================================="
14 vdisplay -dispMode 1 s1 s2 s3 s4
17 if { ![string match "*Selected*" [vstate s1]] ||
18 ![string match "*Selected*" [vstate s2]] ||
19 ![string match "*Selected*" [vstate s3]] ||
20 ![string match "*Selected*" [vstate s4]]} { puts "Error: all spheres should be selected" }
21 vselect 15 15 585 385 -allowoverlap 1
22 if { ![string match "*Selected*" [vstate s1]] ||
23 ![string match "*Selected*" [vstate s2]] ||
24 ![string match "*Selected*" [vstate s3]] ||
25 ![string match "*Selected*" [vstate s4]]} { puts "Error: all spheres should be selected" }
26 vselect 50 135 300 400
27 if { [string match "*Selected*" [vstate s1]] ||
28 [string match "*Selected*" [vstate s2]] ||
29 [string match "*Selected*" [vstate s3]] ||
30 ![string match "*Selected*" [vstate s4]]} { puts "Error: only sphere s4 should be selected" }
31 vselect 0 0 300 400 -allowoverlap 1
32 if { [string match "*Selected*" [vstate s1]] ||
33 ![string match "*Selected*" [vstate s2]] ||
34 ![string match "*Selected*" [vstate s3]] ||
35 ![string match "*Selected*" [vstate s4]]} { puts "Error: spheres s2, s3 and s4 should be selected" }
37 vselect 80 100 300 300
38 if { [string match "*Selected*" [vstate s1]] ||
39 ![string match "*Selected*" [vstate s2]] ||
40 [string match "*Selected*" [vstate s3]] ||
41 ![string match "*Selected*" [vstate s4]]} { puts "Error: spheres s1 and s3 should be unselected" }
42 vselect 380 170 451 241 -allowoverlap 1
43 if { ![string match "*Selected*" [vstate s1]] ||
44 [string match "*Selected*" [vstate s2]] ||
45 ![string match "*Selected*" [vstate s3]] ||
46 [string match "*Selected*" [vstate s4]]} { puts "Error: spheres s1 and s3 should be selected" }
48 if { [string match "*Selected*" [vstate s1]] ||
49 [string match "*Selected*" [vstate s2]] ||
50 [string match "*Selected*" [vstate s3]] ||
51 [string match "*Selected*" [vstate s4]]} { puts "Error: all spheres should be unselected" }
52 vselect 0 400 600 200 -allowoverlap 1
53 if { ![string match "*Selected*" [vstate s1]] ||
54 ![string match "*Selected*" [vstate s2]] ||
55 ![string match "*Selected*" [vstate s3]] ||
56 ![string match "*Selected*" [vstate s4]]} { puts "Error: all spheres should be selected" }