1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00
occt/tests/bugs/modalg_5/bug25828_3
nbv c8187bb218 0025828: BRepAlgoAPI_Section fails for a solid and a face depending on order of arguments
If Walking-lines are coincided we kept line, which contains more points or has more length (because it is more precisely, most likely).

Test cases for issue CR25828
Some test cases were changed
2015-02-26 12:52:49 +03:00

38 lines
714 B
Plaintext
Executable File

puts "========"
puts "OCC25828"
puts "========"
puts ""
##########################################
## BRepAlgoAPI_Section fails for a solid and a face depending on order of arguments
##########################################
set BugNumber OCC25828
restore [locate_data_file bug25828_intersectionproblem.brep] b
explode b
copy b_1 b1
copy b_2 b2
explode b1 f; copy b1_1 b1
explode b2 f; copy b2_6 b2
set log [bopcurves b1 b2 -2d]
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
set MaxTol 5.5e-6
if {${Toler} > ${MaxTol}} {
puts "Error: Tolerance is too big!"
}
if {${NbCurv} != 1} {
puts "Error: NbCurv is bad!"
}
smallview
donly b1 b2
fit
set only_screen_axo 1