1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-15 11:44:07 +03:00
occt/tests/vselect/sphere/single_click_selection
mkrylova 114e7a9022 0032366: Visualization, SelectMgr_ViewerSelector3d::ToPixMap() - add option dumping surface normals
- extended functionality to dump surface normals
- added new option to vseldump command
- added tests
2021-05-21 19:00:57 +03:00

23 lines
1022 B
Plaintext

puts "================================="
puts "0032182: Visualization - add Select3D_SensitiveSphere"
puts "Tests selection of Select3D_SenstiveSphere"
puts "================================="
psphere s 1
vdisplay -dispMode 1 s
vfit
vselect 300 200
if { ![string match "*Selected*" [vstate s]] } { puts "Error: sphere should be selected" }
vselect 195 110
if { [string match "*Selected*" [vstate s]] } { puts "Error: sphere should be unselected" }
vselect 390 110
if { [string match "*Selected*" [vstate s]] } { puts "Error: sphere should be unselected" }
vselect 390 282
if { [string match "*Selected*" [vstate s]] } { puts "Error: sphere should be unselected" }
vselect 213 291
if { [string match "*Selected*" [vstate s]] } { puts "Error: sphere should be unselected" }
vselect 300 200 -allowoverlap 1
if { ![string match "*Selected*" [vstate s]] } { puts "Error: sphere should be selected" }
vselect 195 110 -allowoverlap 1
if { [string match "*Selected*" [vstate s]] } { puts "Error: sphere should be unselected" }