mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
Adding procedures checkcolor and checkpoint. Modified test cases which are used QAGetPixelColor or QAAISGetPixelColor2d Allow using command QAAISGetPixelColor2d on WNT Rename test case tests/bugs/vis/bug19619 to pro19619 Added test cases to modalg and moddata
36 lines
653 B
Plaintext
Executable File
36 lines
653 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
|
|
QARotateV3dView 4 0 0 1
|
|
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
|
|
|
|
|
|
|
|
|