1puts "============"
2puts "OCC27386"
3puts "============"
4puts ""
5#####################################################################
6# BRepOffsetAPI_MakePipeShell does not provide history of generations
7#####################################################################
8
9
10restore [locate_data_file bug27386_sp.brep] sp
11polyline pr1 -5 0 0  -5 -5 0  5 -5 0  5 0 0
12restore [locate_data_file bug27386_pr2.brep] pr2
13explode pr2
14wire pr2 pr2_1 pr2_2
15circle cc 0 100 0  5
16trim cc cc 0 pi
17mkedge pr3 cc
18wire pr3 pr3
19donly sp pr1 pr2 pr3
20
21mksweep sp
22addsweep pr3
23addsweep pr1
24addsweep pr2
25buildsweep q
26
27explode pr1
28explode pr2
29explode pr3
30
31savehistory sweep_hist
32
33generated r1_1 sweep_hist pr1_1
34generated r1_2 sweep_hist pr1_2
35generated r1_3 sweep_hist pr1_3
36
37checknbshapes r1_1 -face 1
38checkprops r1_1 -s 798.081
39checknbshapes r1_2 -face 2
40checkprops r1_2 -s 1653.11
41checknbshapes r1_3 -face 1
42checkprops r1_3 -s 798.081
43
44generated r2_1 sweep_hist pr2_1
45generated r2_2 sweep_hist pr2_2
46
47checknbshapes r2_1 -face 2
48checkprops r2_1 -s 1624.64
49checknbshapes r2_2 -face 2
50checkprops r2_2 -s 1624.64
51
52generated r3_1 sweep_hist pr3_1
53
54checknbshapes r3_1 -face 4
55checkprops r3_1 -s 3249.27
56
57explode pr1 v
58explode pr2 v
59explode pr3 v
60
61generated r1_1 sweep_hist pr1_1
62generated r1_2 sweep_hist pr1_2
63generated r1_3 sweep_hist pr1_3
64generated r1_4 sweep_hist pr1_4
65
66checkprops r1_1 -l 147.049
67checkprops r1_2 -l 161.905
68checkprops r1_3 -l 161.905
69checkprops r1_4 -l 147.049
70
71generated r2_1 sweep_hist pr2_1
72generated r2_2 sweep_hist pr2_2
73generated r2_3 sweep_hist pr2_3
74
75checkprops r2_1 -l 147.049
76checkprops r2_2 -l 172.788
77checkprops r2_3 -l 147.049
78
79generated r3_1 sweep_hist pr3_1
80generated r3_2 sweep_hist pr3_2
81
82checkprops r3_1 -l 147.049
83checkprops r3_2 -l 147.049
84