0014531: Boolean Operation Algorithm fails
[occt.git] / tests / bugs / modalg_5 / bug25828_4
CommitLineData
c8187bb2 1puts "========"
2puts "OCC25828"
3puts "========"
4puts ""
5##########################################
6## BRepAlgoAPI_Section fails for a solid and a face depending on order of arguments
7##########################################
8
9set BugNumber OCC25828
10
11restore [locate_data_file bug25828_intersectionproblem.brep] b
12
13explode b
14copy b_1 b1
15copy b_2 b2
16
17explode b1 f; copy b1_1 b1
18explode b2 f; copy b2_6 b2
19
20set log [bopcurves b2 b1 -2d]
21
22regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
23
24set MaxTol 5.5e-6
25if {${Toler} > ${MaxTol}} {
26 puts "Error: Tolerance is too big!"
27}
28
29if {${NbCurv} != 1} {
30 puts "Error: NbCurv is bad!"
31}
32
33smallview
34donly b1 b2
35fit
36
5747059b 37checkview -screenshot -2d -path ${imagedir}/${test_image}.png