1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-09 18:50:54 +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
1.2 KiB
Plaintext
Executable File

pload QAcommands
puts "================"
puts "OCC295"
puts "================"
puts ""
##############################################################
## Exception is raised in the GeomConvert_CompCurveToBSplineCurve
##Exception "Run-time exception error
## current exception: xalloc. No handler for exception.
## " is raised during merging to edges in DRAW with command "merge re e1 e2".
##############################################################
restore [locate_data_file OCC295-1.brep] e1
set che [checkshape e1]
if { [regexp {Faulty} $che] == 1} {
puts "Faulty OCC295 (shape1): Source shape is invalid. It was detected by Checkshape command"
puts "Body of the script was NOT executed"
renamevar e1 result
} else {
puts "OCC295 OK (shape1): Source shape is valid"
restore [locate_data_file OCC295-2.brep] e2
set che [checkshape e2]
if { [regexp {Faulty} $che] == 1} {
puts "Faulty OCC295 (shape2): Source shape is invalid. It was detected by Checkshape command"
puts "Body of the script was NOT executed"
renamevar e2 result
} else {
puts "OCC295 OK (shape2): Source shape is valid"
OCC295 result e1 e2
}
}
checkprops result -l 19.5611
checkshape result
checksection result
set 2dviewer 0