1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/vis/bug10702
mkrylova e3d4b87912 0031779: Visualization, AIS_ViewController - controller should handle selection schemes
Added AIS_ViewController::MouseSelectionSchemes() property defining map of selection schemes for mouse+modifier combinations.
IsXOR flag has been replaced by AIS_SelectionScheme in interfaces.

Rubber-band selection with Shift key pressed now applies XOR selection scheme in in Draw Harness.
Command vselect has been extended to specify selection scheme by name.
2021-03-04 19:43:13 +03:00

43 lines
915 B
Plaintext
Executable File

puts "============"
puts "OCC10702"
puts "============"
puts ""
#######################################################################
# MeshVS_NodalColorPrsBuilder does not take into account visibility of mesh elements
#######################################################################
set BugNumber OCC10702
pload XDE
vinit
meshfromstl m [locate_data_file OMF6391_box.stl]
set x_coord 180
set y_coord 260
vsetdispmode m 2
puts "\nMesh displayed in shading mode"
checkcolor $x_coord $y_coord 0 0 0.36
vselmode m 8 1
puts "\nSelection of elements is activated"
vselect $x_coord $y_coord -xor
meshhidesel m
puts "\nSelected element is hidden"
checkcolor $x_coord $y_coord 0 0 0.36
meshcolors m nodal 0
puts "\nDisplay nodal color presentation"
#checkcolor $x_coord $y_coord 0.46 0.12 0.37
checkcolor $x_coord $y_coord 0.72 0.72 0.70
checkview -screenshot -3d -path ${imagedir}/${test_image}.png