1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/vselect/cone_cylinder/single_click_selection_trunc_cone
mkrylova 9dd8af261f 0032281: Visualization - add Select3D_SensitiveCylinder
- implemented Select3D_SensitiveCylinder class performing an analytical intersection with an untriangulated cone/cylinder
- added tests
2021-08-27 19:09:09 +03:00

22 lines
988 B
Plaintext

puts "================================="
puts "0032281: Visualization - add Select3D_SensitiveCylinder"
puts "Tests selection of Select3D_SensitiveCylinder"
puts "================================="
pcone tr_cone 10 5 10
vdisplay tr_cone -dispmode 1
vfit
vselect 300 200
if { ![string match "*Selected*" [vstate tr_cone]] } { puts "Error: truncated cone should be selected" }
vselect 300 88
if { ![string match "*Selected*" [vstate tr_cone]] } { puts "Error: truncated cone should be selected" }
vselect 421 187
if { ![string match "*Selected*" [vstate tr_cone]] } { puts "Error: truncated cone should be selected" }
vselect 300 86
if { [string match "*Selected*" [vstate tr_cone]] } { puts "Error: truncated cone should be unselected" }
vselect 378 120
if { [string match "*Selected*" [vstate tr_cone]] } { puts "Error: truncated cone should be unselected" }
vselect 423 187
if { [string match "*Selected*" [vstate tr_cone]] } { puts "Error: truncated cone should be unselected" }