1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/vis/bug349
aba 4754e16481 0023539: QASelect and QAShiftSelect commands
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
2013-01-18 14:22:14 +04:00

103 lines
2.3 KiB
Plaintext
Executable File

puts "========"
puts "OCC349"
puts "1. Hidden line removal algorithm works incorrect in the perspective view"
puts "========"
vinit
box b 100 900 300
set 3dviewer 1
vdisplay b
OCC280 1 0
vfit
set x1 165
set y1 109
set x2 380
set y2 26
set x3 215
set y3 130
set x4 31
set y4 199
set x5 188
set y5 254
set x6 351
set y6 177
set x7 216
set y7 287
set x8 22
set y8 373
set x9 2
set y9 249
set x10 345
set y10 92
set x11 393
set y11 109
set x12 52
set y12 284
#
# ___________2________________
# /| /|
# / | / |
# / | / |
# / | / |
# / | / |
# 1 | 3 |
# / | / |
# / | / |
# / | / |
# / | / |
# ----------------4------------ |
# | | | |
# | | | |
# | | | |
# | 10 | 11
# | | | |
# | | | |
# | | | |
# | | | |
# | | | |
# 9 | 12 |
# | |___________6____|__________|
# | / | /
# | / | /
# | / | /
# | / | /
# | 5 | /
# | / | 7
# | / | /
# | / | /
# | / | /
# |/ |/
# |--------------8------------|
#
#
checkcolor ${x1} ${y1} 1 1 0
checkcolor ${x2} ${y2} 1 1 0
checkcolor ${x3} ${y3} 1 1 0
checkcolor ${x4} ${y4} 1 1 0
checkcolor ${x7} ${y7} 1 1 0
checkcolor ${x8} ${y8} 1 1 0
checkcolor ${x9} ${y9} 1 1 0
checkcolor ${x11} ${y11} 1 1 0
checkcolor ${x12} ${y12} 1 1 0
checkcolor ${x5} ${y5} 0 0 0
checkcolor ${x6} ${y6} 0 0 0
checkcolor ${x10} ${y10} 0 0 0
set only_screen 1