4b0cab06 |
1 | puts "============" |
2 | puts "OCC26251" |
3 | puts "============" |
4 | puts "" |
5 | ############################### |
6 | ## Section curve cannot be found |
7 | ############################### |
8 | |
9 | restore [locate_data_file bug26251_b31_3.brep] b1 |
10 | restore [locate_data_file bug26251_tank31.brep] b2 |
11 | |
12 | bsection result b1 b2 |
13 | |
58cf74e0 |
14 | checkprops result -l 2.49934 |
15 | checkshape result |
16 | checksection result |
4b0cab06 |
17 | |
18 | set nbshapes_expected " |
19 | Number of shapes in shape |
20 | VERTEX : 3 |
21 | EDGE : 2 |
22 | WIRE : 0 |
23 | FACE : 0 |
24 | SHELL : 0 |
25 | SOLID : 0 |
26 | COMPSOLID : 0 |
27 | COMPOUND : 1 |
28 | SHAPE : 6 |
29 | " |
30 | |
31 | checknbshapes result -ref ${nbshapes_expected} -t -m "Section curve" |
32 | |
33 | explode b2 f |
34 | copy b2_5 b2 |
35 | |
36 | set NbCurves 0 |
37 | |
38 | set log [bopcurves b1 b2 -2d] |
39 | regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurves |
40 | |
41 | if {$NbCurves == 0} { |
42 | puts "Error: Intersection curve is not found" |
43 | } |
44 | |
5747059b |
45 | checkview -display result -3d -path ${imagedir}/${test_image}.png |