1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-05 11:24:17 +03:00
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

39 lines
798 B
Plaintext
Executable File

puts "============"
puts "OCC6725"
puts "============"
puts ""
######################################################
# Application crashed with "Segmentation Fault" message. Red Hat Linux 8.0
######################################################
set BugNumber OCC6725
restore [locate_data_file OCC6725.brep] result
set text [incmesh result 0.01]
set last [lindex $text end]
set r [string compare $last Failure]
set status1 0
if {$r == 0} {
set status1 1
}
checkprops result -s 624989
checkshape result
checknbshapes result -vertex 3806 -edge 3808 -wire 756 -face 730 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 9101
if { ${status1} != 0} {
puts "Faulty ${BugNumber}"
} else {
puts "OK ${BugNumber}"
}
vinit
tclean result
vsetdispmode 1
vdisplay result
vfit
set 3dviewer 1