1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-08 18:40:55 +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

35 lines
872 B
Plaintext

puts "============"
puts "OCC20866"
puts "============"
puts ""
#######################################################################
# BRepOffsetAPI_MakePipeShell fails on sections having different form
#######################################################################
set BugNumber OCC20866
restore [locate_data_file bug20866_V_path_Eo_Co.brep] spine
restore [locate_data_file bug20866_Compound_sections.brep] profile
explode profile
mksweep spine
addsweep profile_1
addsweep profile_2
addsweep profile_3
addsweep profile_4
addsweep profile_5
addsweep profile_6
addsweep profile_7
if [catch { buildsweep result } ] {
puts "Faulty ${BugNumber} : buildsweep is wrong"
} else {
checkprops result -s 1.94998e+06
checknbshapes result -vertex 161 -edge 299 -wire 138 -face 138 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 737
}
set 2dviewer 0