1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-20 12:45:50 +03:00
occt/tests/bugs/vis/bug24867
duv 550f3b8b22 0024867: Visualization - polygon offsets look broken
If specific layer setting is not enabled, default value extracted from current OpenGl state will be used.
Default value fix.
Updated test case bugs/vis/bug24867
Linux warning fixed.
2014-05-08 11:41:06 +04:00

36 lines
810 B
Plaintext

puts "============"
puts "OCC24867"
puts "============"
puts ""
#############################################################
# [Regression] Visualization - polygon offsets look broken
#############################################################
restore [locate_data_file Top.brep] b
vinit View1
vdisplay b
vfit
vsetdispmode 1
vmoveto 200 200
set x1_coord 264
set y1_coord 288
set x2_coord 251
set y2_coord 271
checkcolor $x1_coord $y1_coord 0 1 1
if { $stat != 1 } {
puts "Error : Highlighting of dimension with flipping in local context failed."
}
checkcolor $x2_coord $y2_coord 0 1 1
if { $stat != 1 } {
puts "Error : Highlighting of dimension with flipping in local context failed."
}
vdump $::imagedir/${::casename}_highlighted.png
vselect 200 200
vdump $::imagedir/${::casename}_selected.png