Files
OCCT/tests/bugs/xde/bug21124
T
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

31 lines
739 B
Plaintext
Executable File

puts "========"
puts "OCC21124"
puts "========"
puts ""
######################################################
# Mapping between IGES entinties and result shapes is lost on attached file.
######################################################
set BugNumber OCC21124
set filepath [locate_data_file OCC21124.igs]
if [catch { igesbrep $filepath a *} catch_result] {
puts "Error ${BugNumber}: there is reading problem"
} else {
whatis a
explode a
whatis a_91
explode a_91
set l [fromshape a_91_3]
regexp {type : +([-0-9.+eE]+)} $l full type
if { ${type} != 408 } {
puts "Faulty ${BugNumber}"
} else {
puts "OK ${BugNumber}"
}
}
renamevar a_91_3 result
checkprops result -s 74027
checkshape result
set 2dviewer 0