mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-31 11:15:31 +03:00
- 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
37 lines
1.0 KiB
Plaintext
Executable File
37 lines
1.0 KiB
Plaintext
Executable File
puts "========================"
|
|
puts " OCC317 "
|
|
puts "========================"
|
|
puts ""
|
|
##################################################
|
|
## A Solid "so" is valid, whereas wire "so_5" from the solid is not valid.
|
|
##################################################
|
|
|
|
restore [locate_data_file OCC317.brep] result
|
|
|
|
set che [checkshape result]
|
|
if { [regexp {Faulty} $che] == 1} {
|
|
puts "Faulty OCC317: Source shape is invalid. It was detected by Checkshape command"
|
|
puts "Body of the script was NOT executed"
|
|
} else {
|
|
puts "OCC317 OK: Source shape is valid"
|
|
explode result w
|
|
|
|
set che [checkshape result_5]
|
|
if { [regexp {Faulty} $che] == 1} {
|
|
puts "Faulty OCC317: Wire is invalid. It was detected by Checkshape command"
|
|
} else {
|
|
puts "OCC317 OK : Wire is valid."
|
|
}
|
|
|
|
set che [checkshape result r]
|
|
if { [regexp {OK} $che] != 1 } {
|
|
puts "Faulty OCC317: Wire is invalid. It was detected by Checkshape command"
|
|
} else {
|
|
puts "OCC317 OK : Wire is valid."
|
|
}
|
|
}
|
|
|
|
checkprops result -s 2104.21
|
|
set 2dviewer 0
|
|
|