aea33d0a |
1 | puts "============" |
2 | puts "OCC10234" |
3 | puts "============" |
4 | puts "" |
5 | ############################################################################ |
6 | # BRepOffsetAPI_MakePipeShell fails on spine built from two segments and profile built from arc |
7 | ############################################################################ |
8 | |
9 | restore [locate_data_file bug10234a.brep] pr |
10 | restore [locate_data_file bug10234b.brep] sp |
11 | |
12 | mksweep sp |
13 | addsweep pr |
14 | buildsweep result -C |
15 | |
16 | checkshape result |
17 | |
18 | checkprops result -s 45.9872 |
19 | |
20 | set nbshapes_expected " |
21 | Number of shapes in result |
9369e98a |
22 | VERTEX : 7 |
23 | EDGE : 8 |
aea33d0a |
24 | WIRE : 2 |
25 | FACE : 2 |
26 | SHELL : 1 |
27 | SOLID : 0 |
28 | COMPSOLID : 0 |
29 | COMPOUND : 0 |
9369e98a |
30 | SHAPE : 20 |
aea33d0a |
31 | " |
32 | checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by Boolean cut operation" |
33 | |
9369e98a |
34 | set tolres [checkmaxtol result] |
35 | |
36 | if { ${tolres} > 5.e-7} { |
37 | puts "Error: bad tolerance of result" |
38 | } |
39 | |
aea33d0a |
40 | checkview -display result -2d -path ${imagedir}/${test_image}.png |
41 | |
42 | |
43 | |