1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/modalg_6/bug26251
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

46 lines
862 B
Plaintext
Executable File

puts "============"
puts "OCC26251"
puts "============"
puts ""
###############################
## Section curve cannot be found
###############################
restore [locate_data_file bug26251_b31_3.brep] b1
restore [locate_data_file bug26251_tank31.brep] b2
bsection result b1 b2
checkprops result -l 2.49934
checkshape result
checksection result
set nbshapes_expected "
Number of shapes in shape
VERTEX : 3
EDGE : 2
WIRE : 0
FACE : 0
SHELL : 0
SOLID : 0
COMPSOLID : 0
COMPOUND : 1
SHAPE : 6
"
checknbshapes result -ref ${nbshapes_expected} -t -m "Section curve"
explode b2 f
copy b2_5 b2
set NbCurves 0
set log [bopcurves b1 b2 -2d]
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurves
if {$NbCurves == 0} {
puts "Error: Intersection curve is not found"
}
set 3dviewer 1