0032652: Visualization - Select3D_SensitiveCylinder returns wrong 3D point on transfo...
[occt.git] / tests / vselect / cone_cylinder / single_click_selection_trunc_cone
1 puts "================================="
2 puts "0032281: Visualization - add Select3D_SensitiveCylinder"
3 puts "Tests selection of Select3D_SensitiveCylinder"
4 puts "================================="
5
6 pload MODELING VISUALIZATION
7 vinit View1 -height 400 -width 600
8
9 pcone tr_cone 10 5 10
10 vdisplay tr_cone -dispmode 1
11 vfit
12 vselect 300 200
13 if { ![string match "*Selected*" [vstate tr_cone]] } { puts "Error: truncated cone should be selected" }
14 vselect 300 88
15 if { ![string match "*Selected*" [vstate tr_cone]] } { puts "Error: truncated cone  should be selected" }
16 vselect 421 187
17 if { ![string match "*Selected*" [vstate tr_cone]] } { puts "Error: truncated cone  should be selected" }
18
19 vselect 300 86
20 if { [string match "*Selected*" [vstate tr_cone]] } { puts "Error: truncated cone  should be unselected" }
21 vselect 378 120
22 if { [string match "*Selected*" [vstate tr_cone]] } { puts "Error: truncated cone  should be unselected" }
23 vselect 423 187
24 if { [string match "*Selected*" [vstate tr_cone]] } { puts "Error: truncated cone  should be unselected" }