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

40 lines
1.1 KiB
Plaintext
Executable File

pload QAcommands
puts "================"
puts "OCC395"
puts "SAM1296"
puts "================"
puts ""
##############################################################
## After merge two edges with help GeomConvert_CompCurveToBSplineCurve result is bad.
##############################################################
restore [locate_data_file OCC395-1.brep] e1
set che [checkshape e1]
if { [regexp {Faulty} $che ] == 1 } {
puts "Faulty OCC395: Source shape is invalid. It was detected by Checkshape command"
puts "Body of the script was NOT executed"
renamevar e1 result
} else {
puts "OCC395 OK: Source shape is valid"
restore [locate_data_file OCC395-2.brep] e2
set che [checkshape e2]
if { [regexp {Faulty} $che ] == 1 } {
puts "Faulty OCC395: Source shape is invalid. It was detected by Checkshape command"
puts "Body of the script was NOT executed"
renamevar e2 result
} else {
puts "OCC395 OK: Source shape is valid"
OCC395 result e1 e2
}
}
checkprops result -l 34.9073
checkshape result
checksection result
set 2dviewer 0