mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-11 10:44:53 +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
36 lines
643 B
Plaintext
Executable File
36 lines
643 B
Plaintext
Executable File
puts "============"
|
|
puts "OCC23193"
|
|
puts "============"
|
|
puts ""
|
|
###########################################################################
|
|
# Some triangles are inverted when writing an STL file
|
|
###########################################################################
|
|
pload QAcommands
|
|
|
|
|
|
set aFile $imagedir/bug23193_sample.stl
|
|
|
|
vinit
|
|
stepread [locate_data_file bug23193_sample.stp] a *
|
|
writestl a_1 ${aFile} 0
|
|
|
|
meshfromstl m1 ${aFile}
|
|
meshcolors m1 elem2 1
|
|
vrotate 4 0 0
|
|
vfit
|
|
|
|
set x_coord 189
|
|
set y_coord 236
|
|
|
|
checkcolor $x_coord $y_coord 0 0 0.7
|
|
|
|
if { ${stat} != 1 } {
|
|
puts "Error : There is missing triangle"
|
|
}
|
|
|
|
set only_screen 1
|
|
|
|
|
|
|
|
|