1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0025802: Adopt test cases bugs vis bug10781 and bug23227 for Intel graphics driver

Test case bugs/vis/bug10781 - use smaller line width in test case
(some Intel OpenGL drivers support only 7 pixels-width lines).
Test case bugs/vis/bug23227 - just check triangles count in feedback buffer is not 0.
This commit is contained in:
kgv 2015-02-06 18:15:48 +03:00 committed by bugmaster
parent d584648954
commit eea55df528
2 changed files with 18 additions and 13 deletions

View File

@ -1,29 +1,33 @@
puts "============"
puts "OCC10781"
puts "MeshVS is not sensitive to width of edges"
puts "============"
puts ""
#######################################################################
# MeshVS is not sensitive to width of edges
#######################################################################
set BugNumber OCC10781
pload XDE
vinit
vinit View1
vclear
vaxo
meshfromstl m [locate_data_file OMF6391_box.stl]
set x_coord 210
set y_coord 280
set aCoordX 206
set aCoordY 280
vmoveto $x_coord $y_coord
vmoveto $aCoordX $aCoordY
checkcolor $x_coord $y_coord 0 0 0
set aColor1px [vreadpixel $aCoordX $aCoordY rgb name]
if { "$aColor1px" != "BLACK" } {
puts "Error: BLACK color is expected at pixel ${aCoordX}x${aCoordY}"
}
mesh_edge_width m 20
puts "\nSet big mesh edge width"
checkcolor $x_coord $y_coord 1 1 0
mesh_edge_width m 6
set aColor5px [vreadpixel $aCoordX $aCoordY rgb name]
if { "$aColor5px" == "BLACK" } {
puts "Error: YELLOW color is expected at pixel ${aCoordX}x${aCoordY}"
}
set only_screen 1

View File

@ -9,6 +9,7 @@ set BugNumber OCC23227
box b 1 2 3
vinit View1
vclear
vaxo
vdisplay b
vsetdispmode 1
vfit
@ -29,7 +30,7 @@ if { ${llength_vfeedback1} < 36 || ${llength_vfeedback2} < 36 || ${IndexTriangle
} else {
set Triangles1 [lindex ${vfeedback1} ${IndexTriangles1}+1]
set Triangles2 [lindex ${vfeedback2} ${IndexTriangles1}+1]
if { ${Triangles1} == 6 && ${Triangles2} == 0 } {
if { ${Triangles1} != 0 && ${Triangles2} == 0 } {
puts "OK ${BugNumber}"
} else {
puts "Faulty ${BugNumber}"