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