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

47 lines
1.2 KiB
Plaintext
Executable File

puts "============"
puts "OCC26718"
puts "============"
puts ""
#############################################################################################
## Big tolerance value of the edge in the result of Genral Fuse operation
#############################################################################################
restore [locate_data_file bug26718_w6_b1.brep] b1
restore [locate_data_file bug26718_w6_b2.brep] b2
bclearobjects
bcleartools
baddobjects b1
baddtools b2
bfillds
bbuild result
checkprops result -s 2.3834e+06
checkshape result
set nbshapes_expected "
Number of shapes in shape
VERTEX : 7
EDGE : 11
WIRE : 8
FACE : 5
SHELL : 2
SOLID : 2
COMPSOLID : 0
COMPOUND : 1
SHAPE : 36
"
checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by General Fuse operation"
regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance result] full MaxTolerance
puts "MaxTolerance=$MaxTolerance"
set expected_MaxTolerance 0.317915740714732
set tol_abs_MaxTolerance 0.01
set tol_rel_MaxTolerance 0.01
checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
set 3dviewer 1