61c421bf |
1 | puts "============" |
2 | puts "OCC5806" |
3 | puts "============" |
4 | puts "" |
5 | ###################################################### |
6 | # BRepOffsetAPI_MakeThickSolid fails to build a result |
7 | ###################################################### |
8 | |
9 | set BugNumber OCC5806 |
10 | |
11 | puts "demonstration of pipes and hollowing for GTISoft" |
12 | puts "" |
13 | puts "Scenario 3A: Hollowed general pipe - ThroughSection with following shell reconstruction" |
14 | |
15 | circle c 0 100 0 1 0 0 5 |
16 | mkedge ec c |
17 | wire wc ec |
18 | polyline pl 10 90 -10 10 90 10 10 110 10 10 110 -10 10 90 -10 |
19 | |
20 | if { [catch { thrusections resthru 1 1 wc pl } catch_result] } { |
21 | puts "Faulty ${BugNumber} : thrusections is wrong" |
22 | } |
23 | |
24 | # straighforward hollowing will fail due to problems in the algorithm |
25 | explode resthru f |
26 | |
27 | if { [catch { offsetshape result resthru -0.5 resthru_6 resthru_7 } catch_result] } { |
28 | puts "Faulty ${BugNumber} : offsetshape is wrong" |
29 | } |
30 | |
fb60057d |
31 | checkmaxtol result -min_tol 1. |
61c421bf |
32 | |
33 | set square 1116.06 |
34 | |
35 | set nb_v_good 10 |
36 | set nb_e_good 15 |
37 | set nb_w_good 7 |
38 | set nb_f_good 7 |
39 | set nb_sh_good 1 |
40 | set nb_sol_good 1 |
41 | set nb_compsol_good 0 |
42 | set nb_compound_good 0 |
43 | set nb_shape_good 41 |
44 | |
45 | set 2dviewer 0 |