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:
parent
d584648954
commit
eea55df528
@ -1,29 +1,33 @@
|
|||||||
puts "============"
|
puts "============"
|
||||||
puts "OCC10781"
|
puts "OCC10781"
|
||||||
|
puts "MeshVS is not sensitive to width of edges"
|
||||||
puts "============"
|
puts "============"
|
||||||
puts ""
|
puts ""
|
||||||
#######################################################################
|
|
||||||
# MeshVS is not sensitive to width of edges
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
set BugNumber OCC10781
|
set BugNumber OCC10781
|
||||||
|
|
||||||
pload XDE
|
pload XDE
|
||||||
|
|
||||||
vinit
|
vinit View1
|
||||||
|
vclear
|
||||||
|
vaxo
|
||||||
|
|
||||||
meshfromstl m [locate_data_file OMF6391_box.stl]
|
meshfromstl m [locate_data_file OMF6391_box.stl]
|
||||||
|
|
||||||
set x_coord 210
|
set aCoordX 206
|
||||||
set y_coord 280
|
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
|
mesh_edge_width m 6
|
||||||
puts "\nSet big mesh edge width"
|
set aColor5px [vreadpixel $aCoordX $aCoordY rgb name]
|
||||||
|
if { "$aColor5px" == "BLACK" } {
|
||||||
checkcolor $x_coord $y_coord 1 1 0
|
puts "Error: YELLOW color is expected at pixel ${aCoordX}x${aCoordY}"
|
||||||
|
}
|
||||||
|
|
||||||
set only_screen 1
|
set only_screen 1
|
||||||
|
@ -9,6 +9,7 @@ set BugNumber OCC23227
|
|||||||
box b 1 2 3
|
box b 1 2 3
|
||||||
vinit View1
|
vinit View1
|
||||||
vclear
|
vclear
|
||||||
|
vaxo
|
||||||
vdisplay b
|
vdisplay b
|
||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
vfit
|
vfit
|
||||||
@ -29,7 +30,7 @@ if { ${llength_vfeedback1} < 36 || ${llength_vfeedback2} < 36 || ${IndexTriangle
|
|||||||
} else {
|
} else {
|
||||||
set Triangles1 [lindex ${vfeedback1} ${IndexTriangles1}+1]
|
set Triangles1 [lindex ${vfeedback1} ${IndexTriangles1}+1]
|
||||||
set Triangles2 [lindex ${vfeedback2} ${IndexTriangles1}+1]
|
set Triangles2 [lindex ${vfeedback2} ${IndexTriangles1}+1]
|
||||||
if { ${Triangles1} == 6 && ${Triangles2} == 0 } {
|
if { ${Triangles1} != 0 && ${Triangles2} == 0 } {
|
||||||
puts "OK ${BugNumber}"
|
puts "OK ${BugNumber}"
|
||||||
} else {
|
} else {
|
||||||
puts "Faulty ${BugNumber}"
|
puts "Faulty ${BugNumber}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user