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
37 lines
1.6 KiB
Plaintext
37 lines
1.6 KiB
Plaintext
puts "================================="
|
|
puts "0032281: Visualization - add Select3D_SensitiveCylinder"
|
|
puts "Tests selection of Select3D_SensitiveCylinder"
|
|
puts "================================="
|
|
|
|
pcylinder cyl 10 20
|
|
vdisplay cyl -dispmode 1
|
|
vfit
|
|
vselect 300 200
|
|
if { ![string match "*Selected*" [vstate cyl]] } { puts "Error: cylinder should be selected" }
|
|
vselect 300 100
|
|
if { ![string match "*Selected*" [vstate cyl]] } { puts "Error: cylinder should be selected" }
|
|
vselect 300 300
|
|
if { ![string match "*Selected*" [vstate cyl]] } { puts "Error: cylinder should be selected" }
|
|
|
|
vselect 300 25
|
|
if { [string match "*Selected*" [vstate cyl]] } { puts "Error: cylinder should be unselected" }
|
|
vselect 388 50
|
|
if { [string match "*Selected*" [vstate cyl]] } { puts "Error: cylinder should be unselected" }
|
|
vselect 424 200
|
|
if { [string match "*Selected*" [vstate cyl]] } { puts "Error: cylinder should be unselected" }
|
|
|
|
vselect 300 35
|
|
if { ![string match "*Selected*" [vstate cyl]] } { puts "Error: cylinder should be selected" }
|
|
vselect 420 95
|
|
if { ![string match "*Selected*" [vstate cyl]] } { puts "Error: cylinder should be selected" }
|
|
vselect 420 200
|
|
if { ![string match "*Selected*" [vstate cyl]] } { puts "Error: cylinder should be selected" }
|
|
vtop
|
|
vfit
|
|
vselect 300 200
|
|
if { ![string match "*Selected*" [vstate cyl]] } { puts "Error: cylinder should be selected" }
|
|
vselect 440 64
|
|
if { ![string match "*Selected*" [vstate cyl]] } { puts "Error: cylinder should be selected" }
|
|
vselect 446 60
|
|
if { [string match "*Selected*" [vstate cyl]] } { puts "Error: cylinder should be unselected" }
|