mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
Replaced QAMoveTo, QASelect and QAShiftSelect draw commands with vmoveto and vselect Moved vselect and vmoveto draw commands to ViewerTest_ViewerCommands.cxx Replaced QAMoveTo and QASelect in test cases. Corrected returned error case result in vselect and vmoveto. Added commands in ViewerTest_ViewerCommands from QADraw. Edited tests. QACommands in tests were replaced with ViewerTest commands. QAxwd command was removed from QADraw. Edited command wzoom and commands from ViewerTest. Help for ViewerTest commands was edited Small corrections. Added test cases for polygonal selection. Small correction of test cases
28 lines
642 B
Plaintext
28 lines
642 B
Plaintext
puts "============"
|
|
puts "CR23539"
|
|
puts "============"
|
|
puts ""
|
|
######################################################
|
|
# Test case for polygonal selection
|
|
######################################################
|
|
|
|
box b 10 10 10
|
|
vinit
|
|
vdisplay b
|
|
vfit
|
|
vselmode 2 1
|
|
vselect 1 1 1 407 407 407 407 1
|
|
|
|
set NbSelected1 [vnbselected]
|
|
if { ${NbSelected1} != 12 } {
|
|
puts "Error : Bad number of selected edges after polygonal selection of all edges"
|
|
}
|
|
|
|
vselect 10 10 10 20 20 20 20 10
|
|
|
|
set NbSelected2 [vnbselected]
|
|
if { ${NbSelected2} != 0 } {
|
|
puts "Error : Bad number of selected edges after polyginal selection of empty space"
|
|
}
|
|
|
|
set only_screen 1 |