521e1c61 |
1 | puts "============" |
2 | puts "OCC26718" |
3 | puts "============" |
4 | puts "" |
5 | ############################################################################################# |
7b5e532f |
6 | ## Big tolerance value of the edge in the result of General Fuse operation |
521e1c61 |
7 | ############################################################################################# |
8 | |
9 | restore [locate_data_file bug26718_w6_b1.brep] b1 |
10 | restore [locate_data_file bug26718_w6_b2.brep] b2 |
11 | |
12 | bclearobjects |
13 | bcleartools |
14 | baddobjects b1 |
15 | baddtools b2 |
16 | |
17 | bfillds |
18 | bbuild result |
19 | |
58cf74e0 |
20 | checkprops result -s 2.3834e+06 |
21 | checkshape result |
521e1c61 |
22 | |
23 | set nbshapes_expected " |
24 | Number of shapes in shape |
25 | VERTEX : 7 |
26 | EDGE : 11 |
27 | WIRE : 8 |
28 | FACE : 5 |
29 | SHELL : 2 |
30 | SOLID : 2 |
31 | COMPSOLID : 0 |
32 | COMPOUND : 1 |
33 | SHAPE : 36 |
34 | " |
35 | |
36 | checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by General Fuse operation" |
37 | |
38 | regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance result] full MaxTolerance |
39 | puts "MaxTolerance=$MaxTolerance" |
40 | |
41 | set expected_MaxTolerance 0.317915740714732 |
42 | set tol_abs_MaxTolerance 0.01 |
43 | set tol_rel_MaxTolerance 0.01 |
44 | checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance} |
45 | |
5747059b |
46 | checkview -display result -3d -path ${imagedir}/${test_image}.png |