0031047: Modeling Algorithms - BRepExtrema_DistShapeShape gives wrong result
[occt.git] / tests / bugs / modalg_6 / bug27386_4
1 puts "============"
2 puts "OCC27386"
3 puts "============"
4 puts ""
5 #####################################################################
6 # BRepOffsetAPI_MakePipeShell does not provide history of generations
7 #####################################################################
8
9
10 restore [locate_data_file bug27386_sp.brep] sp
11 restore [locate_data_file bug27386_pr2.brep] pr2
12 explode sp v
13 donly sp sp_1 pr2 sp_2
14
15 mksweep sp
16 addsweep sp_1
17 addsweep pr2
18 addsweep sp_2
19 buildsweep q
20
21 explode pr2
22
23 savehistory sweep_hist
24
25 generated r1 sweep_hist pr2_1
26 generated r2 sweep_hist pr2_2
27 generated r3 sweep_hist pr2_3
28
29 checkprops r1 -s 1171.18
30 checkprops r2 -s 1171.18
31 checkprops r3 -s 965.22
32
33 explode pr2 v
34
35 generated r1 sweep_hist pr2_1
36 generated r2 sweep_hist pr2_2
37 generated r3 sweep_hist pr2_3
38
39 checkprops r1 -l 147.049
40 checkprops r2 -l 167.959
41 checkprops r3 -l 147.049
42
43 generated r4 sweep_hist sp_1
44 generated r5 sweep_hist sp_2
45
46 checknbshapes r4 -vertex 1 -edge 3 -face 0
47
48 regexp {Mass : *([0-9\-+.eE]+)} [lprops r4] dummy len4
49
50 if {$len4 > 1.e-12} {
51    puts "Error: the length of punctual section is not null"
52 }
53
54 checknbshapes r5 -vertex 1 -edge 3 -face 0
55
56 regexp {Mass : *([0-9\-+.eE]+)} [lprops r5] dummy len5
57
58 if {$len5 > 1.e-12} {
59    puts "Error: the length of punctual section is not null"
60 }