mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
- implemented Select3D_SensitiveCylinder class performing an analytical intersection with an untriangulated cone/cylinder - added tests
22 lines
901 B
Plaintext
22 lines
901 B
Plaintext
puts "================================="
|
|
puts "0032281: Visualization - add Select3D_SensitiveCylinder"
|
|
puts "Tests selection of Select3D_SensitiveCylinder"
|
|
puts "================================="
|
|
|
|
pcone cone 10 0 20
|
|
vdisplay cone -dispmode 1
|
|
vfit
|
|
vselect 300 200
|
|
if { ![string match "*Selected*" [vstate cone]] } { puts "Error: cone should be selected" }
|
|
vselect 300 101
|
|
if { ![string match "*Selected*" [vstate cone]] } { puts "Error: cone should be selected" }
|
|
vselect 300 300
|
|
if { ![string match "*Selected*" [vstate cone]] } { puts "Error: cone should be selected" }
|
|
|
|
vselect 357 182
|
|
if { [string match "*Selected*" [vstate cone]] } { puts "Error: cone should be unselected" }
|
|
vselect 242 182
|
|
if { [string match "*Selected*" [vstate cone]] } { puts "Error: cone should be unselected" }
|
|
vselect 310 101
|
|
if { [string match "*Selected*" [vstate cone]] } { puts "Error: cone should be unselected" }
|