0025687: Visualization, XCAF - eliminate visual artifacts at the edges of faces
[occt.git] / tests / bugs / vis / bug24867
1 puts "============"
2 puts "OCC24867"
3 puts "============"
4 puts ""
5 #############################################################
6 # [Regression] Visualization - polygon offsets look broken
7 #############################################################
8
9 restore [locate_data_file Top.brep] b
10 vinit View1
11 vdisplay b
12 vfit
13 vsetdispmode 1
14 vaspects -setwidth 5
15 vmoveto 200 200
16 if { "[vreadpixel 264 288 rgb name]" != "CYAN1" } {
17   puts "Error : Highlighting of dimension with flipping in local context failed."
18 }
19
20 if { "[vreadpixel 251 271 rgb name]" != "CYAN1" } {
21   puts "Error : Highlighting of dimension with flipping in local context failed."
22 }
23
24 vdump $::imagedir/${::casename}_highlighted.png
25
26 vselect 200 200
27 vdump $::imagedir/${::casename}_selected.png
28