1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/vis/bug727
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

39 lines
601 B
Plaintext
Executable File

puts "============"
puts "OCC727"
puts "============"
puts ""
#############################
## The second object can not be deselected.
#############################
box a 10 10 10
box b 50 50 50 10 10 10
vinit
vdisplay a
vdisplay b
vfit
set x1 60
set y1 300
set x2 350
set y2 120
vselect 0 0
vselect ${x1} ${y1}
vselect ${x2} ${y2} 1
set NbSelected1 [vnbselected]
if { ${NbSelected1} != 2 } {
puts "Error : (case 1)"
}
vselect ${x2} ${y2} 1
set NbSelected1 [vnbselected]
if { ${NbSelected1} != 1 } {
puts "Error : (case 2)"
}
checkview -screenshot -3d -path ${imagedir}/${test_image}.png