mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-09 18:50:54 +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
44 lines
1.1 KiB
Plaintext
Executable File
44 lines
1.1 KiB
Plaintext
Executable File
puts "================"
|
|
puts "OCC25224"
|
|
puts "================"
|
|
puts ""
|
|
#######################################################################
|
|
# The section curve between two cylindrical faces is incomplete
|
|
#######################################################################
|
|
|
|
restore [locate_data_file bug25224_Input_5.brep] b1
|
|
restore [locate_data_file bug25224_Input_21.brep] b2
|
|
|
|
# 1. bopcurves
|
|
explode b1 f
|
|
explode b2 f
|
|
|
|
set log [bopcurves b1_1 b2_1]
|
|
|
|
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
|
|
set MaxTol 1.e-7
|
|
if {${Toler} > ${MaxTol}} {
|
|
puts "Error: Tolerance is too big!"
|
|
}
|
|
|
|
regexp {The length c_1 is ([-0-9.+eE]+)} [length c_1] full Curve_Length
|
|
|
|
set expected_length 0.52377379499528021
|
|
set tol_abs_length 1.e-7
|
|
set tol_rel_length 0.01
|
|
checkreal "Curve length" ${Curve_Length} ${expected_length} ${tol_abs_length} ${tol_rel_length}
|
|
|
|
# 2. BOP
|
|
bclearobjects
|
|
bcleartools
|
|
baddobjects b1
|
|
baddtools b2
|
|
bfillds
|
|
bbuild result
|
|
|
|
checkprops result -s 21.4983
|
|
checkshape result
|
|
|
|
checknbshapes result -vertex 10 -edge 19 -wire 13 -face 13 -shell 3 -solid 3 -compsolid 0 -compound 1 -shape 62
|
|
set 3dviewer 1
|