1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/modalg_2/bug22884
ski 58cf74e0c0 0025945: Make stable checking of shape global properties in tests
- Added function checkprops, set default tolerance parameter to 1.0e-4
- Using "area" instead of "square".
- Options "-equal\notequal" isn't used together with "-s" in blend and offset test cases.
- Correct regressions/differences/improvements and CPU problem (set props tolerance to 0.1)
- Corrected test cases to use checkprops proc.
- Correct image difference
- Updated TODOs in test cases.
- Updated test cases to get correct images of result shape
2015-12-10 16:56:03 +03:00

34 lines
737 B
Plaintext
Executable File

pload QAcommands
puts "============"
puts "OCC22884"
puts "============"
puts ""
#############################################################################
# The attached face cannot be displayed in shading mode
#############################################################################
set BugNumber OCC22884
set x1 136
set y1 176
restore [locate_data_file bug22884_Face_1.brep] result
vinit
vdisplay result
vfit
vsetdispmode 1
checkprops result -s 697.812
checkshape result
checknbshapes result -vertex 46 -edge 46 -wire 3 -face 1 -shell 0 -solid 0 -compsolid 0 -compound 0 -shape 96
if { "[vreadpixel $x1 $y1 rgb name]" == "BLACK" } {
puts "Faulty ${BugNumber}"
} else {
puts "OK ${BugNumber}"
}
set 3dviewer 0