mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0030186: BRepOffsetAPI_MakePipe Generated() method produces no results for the spine edges
Add method BuildHistory providing history for sub-shapes of profile and spine to BRepFill_Pipe.
This commit is contained in:
@@ -2,23 +2,52 @@ puts "============"
|
||||
puts "OCC27065"
|
||||
puts "============"
|
||||
puts ""
|
||||
###############################
|
||||
#########################################################################
|
||||
## BRepOffsetAPI_MakePipe misses definition of virtual method Generated()
|
||||
###############################
|
||||
|
||||
pload QAcommands
|
||||
#########################################################################
|
||||
|
||||
restore [locate_data_file bug24840_comp.brep] sh
|
||||
explode sh
|
||||
OCC27065 sh_1 sh_2
|
||||
fit
|
||||
renamevar sh_1 path
|
||||
renamevar sh_2 base
|
||||
|
||||
checknbshapes res_shell -vertex 56 -edge 130 -wire 99 -face 99 -shell 24 -solid 24 -compsolid 1 -compound 1 -shape 434
|
||||
pipe q path base
|
||||
savehistory pipe_hist
|
||||
|
||||
checknbshapes res_face -vertex 8 -edge 12 -wire 6 -face 6 -shell 1 -solid 1 -compsolid 0 -compound 1 -shape 35
|
||||
explode base
|
||||
|
||||
checknbshapes res_wire -vertex 8 -edge 12 -wire 4 -face 4 -shell 1 -solid 0 -compsolid 0 -compound 1 -shape 30
|
||||
generated r1 pipe_hist base_1
|
||||
generated r5 pipe_hist base_5
|
||||
generated r11 pipe_hist base_11
|
||||
|
||||
checknbshapes res_edge -vertex 4 -edge 4 -wire 1 -face 1 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 11
|
||||
|
||||
checknbshapes res_vertex -vertex 2 -edge 1 -wire 0 -face 0 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 4
|
||||
checknbshapes r1 -vertex 8 -edge 12 -wire 6 -face 6 -shell 1 -solid 1
|
||||
checknbshapes r5 -vertex 8 -edge 12 -wire 6 -face 6 -shell 1 -solid 1
|
||||
checknbshapes r11 -vertex 6 -edge 9 -wire 5 -face 5 -shell 1 -solid 1
|
||||
|
||||
checkprops r1 -v 0.434835
|
||||
checkprops r5 -v 0.0165356
|
||||
checkprops r11 -v 4.06042e-005
|
||||
|
||||
explode base e
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r2 pipe_hist base_2
|
||||
generated r4 pipe_hist base_4
|
||||
|
||||
checkprops r1 -s 1.83914
|
||||
checkprops r2 -s 0.335211
|
||||
checkprops r4 -s 1.8982
|
||||
|
||||
explode base v
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r2 pipe_hist base_2
|
||||
generated r11 pipe_hist base_11
|
||||
generated r20 pipe_hist base_20
|
||||
|
||||
checkprops r1 -l 4.2837
|
||||
checkprops r2 -l 4.91201
|
||||
checkprops r11 -l 4.13217
|
||||
checkprops r20 -l 4.12661 -deps 1.e-7
|
||||
|
||||
|
@@ -2,27 +2,36 @@ puts "============"
|
||||
puts "OCC27065"
|
||||
puts "============"
|
||||
puts ""
|
||||
###############################
|
||||
#########################################################################
|
||||
## BRepOffsetAPI_MakePipe misses definition of virtual method Generated()
|
||||
###############################
|
||||
|
||||
pload QAcommands
|
||||
#########################################################################
|
||||
|
||||
restore [locate_data_file bug23903_base.brep] base
|
||||
restore [locate_data_file bug23903_path.brep] sp
|
||||
restore [locate_data_file bug23903_path.brep] path
|
||||
|
||||
pipe q path base
|
||||
savehistory pipe_hist
|
||||
|
||||
explode base
|
||||
shape pr Sh
|
||||
add base_1 pr
|
||||
add base_2 pr
|
||||
OCC27065 sp pr
|
||||
fit
|
||||
|
||||
checknbshapes res_shell -vertex 2 -edge 5 -wire 3 -face 3 -shell 2 -solid 2 -compsolid 1 -compound 1 -shape 19
|
||||
generated r1 pipe_hist base_1
|
||||
generated r2 pipe_hist base_2
|
||||
|
||||
checknbshapes res_face -vertex 2 -edge 4 -wire 2 -face 2 -shell 1 -solid 1 -compsolid 0 -compound 1 -shape 13
|
||||
checknbshapes r1 -vertex 2 -edge 4 -wire 2 -face 2 -shell 1 -solid 1
|
||||
checknbshapes r2 -vertex 2 -edge 4 -wire 2 -face 2 -shell 1 -solid 1
|
||||
checkprops r1 -v 888.833
|
||||
checkprops r2 -v 888.833
|
||||
|
||||
checknbshapes res_wire -vertex 2 -edge 4 -wire 2 -face 2 -shell 1 -solid 0 -compsolid 0 -compound 1 -shape 12
|
||||
explode base e
|
||||
|
||||
checknbshapes res_edge -vertex 2 -edge 3 -wire 1 -face 1 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 8
|
||||
generated r1 pipe_hist base_1
|
||||
generated r2 pipe_hist base_2
|
||||
checkprops r1 -s 353.655
|
||||
checkprops r2 -s 555.521
|
||||
|
||||
checknbshapes res_vertex -vertex 1 -edge 1 -wire 0 -face 0 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 3
|
||||
explode base v
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r2 pipe_hist base_2
|
||||
checkprops r1 -l 35.1526
|
||||
checkprops r2 -l 75.3649
|
||||
|
@@ -25,10 +25,12 @@ generated r1 sweep_hist pr_1_1
|
||||
generated r2 sweep_hist pr_1_2
|
||||
generated r3 sweep_hist pr_1_3
|
||||
generated r4 sweep_hist pr_1_4
|
||||
checkprops r1 -s 9402.08
|
||||
checkprops r2 -s 10944.1
|
||||
checkprops r3 -s 9402.08
|
||||
checkprops r4 -s 10944.1
|
||||
|
||||
explode pr_1 v
|
||||
|
||||
generated r1 sweep_hist pr_1_1
|
||||
generated r2 sweep_hist pr_1_2
|
||||
generated r3 sweep_hist pr_1_3
|
||||
generated r4 sweep_hist pr_1_4
|
||||
checkprops r3 -l 130.036
|
||||
|
@@ -66,3 +66,14 @@ generated r2_2 sweep_hist pr2_2
|
||||
generated r2_3 sweep_hist pr2_3
|
||||
|
||||
generated r3_1 sweep_hist pr3_1
|
||||
|
||||
checkprops r1_1 -l 142.176
|
||||
checkprops r1_2 -l 142.176
|
||||
checkprops r1_3 -l 163.176
|
||||
checkprops r1_4 -l 163.176
|
||||
|
||||
checkprops r2_1 -l 142.176
|
||||
checkprops r2_2 -l 172.788
|
||||
checkprops r2_3 -l 142.176
|
||||
|
||||
checkprops r3_1 -l 153.936
|
||||
|
@@ -18,7 +18,6 @@ mkedge pr3 cc
|
||||
wire pr3 pr3
|
||||
donly sp pr1 pr2 pr3
|
||||
|
||||
|
||||
mksweep sp
|
||||
addsweep pr3
|
||||
addsweep pr1
|
||||
@@ -35,11 +34,26 @@ generated r1_1 sweep_hist pr1_1
|
||||
generated r1_2 sweep_hist pr1_2
|
||||
generated r1_3 sweep_hist pr1_3
|
||||
|
||||
checknbshapes r1_1 -face 1
|
||||
checkprops r1_1 -s 798.081
|
||||
checknbshapes r1_2 -face 2
|
||||
checkprops r1_2 -s 1653.11
|
||||
checknbshapes r1_3 -face 1
|
||||
checkprops r1_3 -s 798.081
|
||||
|
||||
generated r2_1 sweep_hist pr2_1
|
||||
generated r2_2 sweep_hist pr2_2
|
||||
|
||||
checknbshapes r2_1 -face 2
|
||||
checkprops r2_1 -s 1624.64
|
||||
checknbshapes r2_2 -face 2
|
||||
checkprops r2_2 -s 1624.64
|
||||
|
||||
generated r3_1 sweep_hist pr3_1
|
||||
|
||||
checknbshapes r3_1 -face 4
|
||||
checkprops r3_1 -s 3249.27
|
||||
|
||||
explode pr1 v
|
||||
explode pr2 v
|
||||
explode pr3 v
|
||||
@@ -49,9 +63,21 @@ generated r1_2 sweep_hist pr1_2
|
||||
generated r1_3 sweep_hist pr1_3
|
||||
generated r1_4 sweep_hist pr1_4
|
||||
|
||||
checkprops r1_1 -l 147.049
|
||||
checkprops r1_2 -l 161.905
|
||||
checkprops r1_3 -l 161.905
|
||||
checkprops r1_4 -l 147.049
|
||||
|
||||
generated r2_1 sweep_hist pr2_1
|
||||
generated r2_2 sweep_hist pr2_2
|
||||
generated r2_3 sweep_hist pr2_3
|
||||
|
||||
checkprops r2_1 -l 147.049
|
||||
checkprops r2_2 -l 172.788
|
||||
checkprops r2_3 -l 147.049
|
||||
|
||||
generated r3_1 sweep_hist pr3_1
|
||||
generated r3_2 sweep_hist pr3_2
|
||||
|
||||
checkprops r3_1 -l 147.049
|
||||
checkprops r3_2 -l 147.049
|
||||
|
@@ -26,11 +26,35 @@ generated r1 sweep_hist pr2_1
|
||||
generated r2 sweep_hist pr2_2
|
||||
generated r3 sweep_hist pr2_3
|
||||
|
||||
checkprops r1 -s 1171.18
|
||||
checkprops r2 -s 1171.18
|
||||
checkprops r3 -s 965.22
|
||||
|
||||
explode pr2 v
|
||||
|
||||
generated r1 sweep_hist pr2_1
|
||||
generated r2 sweep_hist pr2_2
|
||||
generated r3 sweep_hist pr2_3
|
||||
|
||||
checkprops r1 -l 147.049
|
||||
checkprops r2 -l 167.959
|
||||
checkprops r3 -l 147.049
|
||||
|
||||
generated r4 sweep_hist sp_1
|
||||
generated r5 sweep_hist sp_2
|
||||
|
||||
checknbshapes r4 -vertex 1 -edge 3 -face 0
|
||||
|
||||
regexp {Mass : *([0-9\-+.eE]+)} [lprops r4] dummy len4
|
||||
|
||||
if {$len4 > 1.e-12} {
|
||||
puts "Error: the length of punctual section is not null"
|
||||
}
|
||||
|
||||
checknbshapes r5 -vertex 1 -edge 3 -face 0
|
||||
|
||||
regexp {Mass : *([0-9\-+.eE]+)} [lprops r5] dummy len5
|
||||
|
||||
if {$len5 > 1.e-12} {
|
||||
puts "Error: the length of punctual section is not null"
|
||||
}
|
||||
|
@@ -28,17 +28,32 @@ savehistory sweep_hist
|
||||
|
||||
generated r1_1 sweep_hist pr1_1
|
||||
|
||||
checknbshapes r1_1 -face 4
|
||||
checkprops r1_1 -s 37077
|
||||
|
||||
generated r2_1 sweep_hist pr2_1
|
||||
generated r2_2 sweep_hist pr2_2
|
||||
generated r2_3 sweep_hist pr2_3
|
||||
generated r2_4 sweep_hist pr2_4
|
||||
|
||||
checkprops r2_1 -s 8740.38
|
||||
checkprops r2_2 -s 9798.12
|
||||
checkprops r2_3 -s 9798.12
|
||||
checkprops r2_4 -s 8740.38
|
||||
|
||||
explode pr1 v
|
||||
explode pr2 v
|
||||
|
||||
generated r1_1 sweep_hist pr1_1
|
||||
|
||||
checkprops r1_1 -l 628.319
|
||||
|
||||
generated r2_1 sweep_hist pr2_1
|
||||
generated r2_2 sweep_hist pr2_2
|
||||
generated r2_3 sweep_hist pr2_3
|
||||
generated r2_4 sweep_hist pr2_4
|
||||
|
||||
checkprops r2_1 -l 565.487
|
||||
checkprops r2_2 -l 628.319
|
||||
checkprops r2_3 -l 691.15
|
||||
checkprops r2_4 -l 628.319
|
||||
|
@@ -30,19 +30,42 @@ savehistory sweep_hist
|
||||
|
||||
generated r1_1 sweep_hist pr1_1
|
||||
|
||||
checknbshapes r1_1 -face 4
|
||||
checkprops r1_1 -s 35117.3
|
||||
|
||||
generated r2_1 sweep_hist pr2_1
|
||||
generated r2_2 sweep_hist pr2_2
|
||||
generated r2_3 sweep_hist pr2_3
|
||||
generated r2_4 sweep_hist pr2_4
|
||||
|
||||
checkprops r2_1 -s 8183.89
|
||||
checkprops r2_2 -s 9374.75
|
||||
checkprops r2_3 -s 9374.75
|
||||
checkprops r2_4 -s 8183.89
|
||||
|
||||
explode pr1 v
|
||||
explode pr2 v
|
||||
|
||||
generated r1_1 sweep_hist pr1_1
|
||||
|
||||
checkprops r1_1 -l 628.319
|
||||
|
||||
generated r2_1 sweep_hist pr2_1
|
||||
generated r2_2 sweep_hist pr2_2
|
||||
generated r2_3 sweep_hist pr2_3
|
||||
generated r2_4 sweep_hist pr2_4
|
||||
|
||||
checkprops r2_1 -l 573.265
|
||||
checkprops r2_2 -l 629.072
|
||||
checkprops r2_3 -l 684.885
|
||||
checkprops r2_4 -l 629.072
|
||||
|
||||
generated r3 sweep_hist sp_1
|
||||
|
||||
checknbshapes r3 -vertex 1 -edge 4 -face 0
|
||||
|
||||
regexp {Mass : *([0-9\-+.eE]+)} [lprops r3] dummy len3
|
||||
|
||||
if {$len3 > 1.e-12} {
|
||||
puts "Error: the length of punctual section is not null"
|
||||
}
|
||||
|
@@ -23,9 +23,23 @@ generated r2 sweep_hist pr_2
|
||||
generated r3 sweep_hist pr_3
|
||||
generated r4 sweep_hist pr_4
|
||||
|
||||
checknbshapes r1 -face 4
|
||||
checkprops r1 -s 256109
|
||||
checknbshapes r2 -face 4
|
||||
checkprops r2 -s 277227
|
||||
checknbshapes r3 -face 4
|
||||
checkprops r3 -s 256109
|
||||
checknbshapes r4 -face 3
|
||||
checkprops r4 -s 233971
|
||||
|
||||
explode pr v
|
||||
|
||||
generated r1 sweep_hist pr_1
|
||||
generated r2 sweep_hist pr_2
|
||||
generated r3 sweep_hist pr_3
|
||||
generated r4 sweep_hist pr_4
|
||||
|
||||
checkprops r1 -l 1169.86
|
||||
checkprops r2 -l 1386.13
|
||||
checkprops r3 -l 1386.13
|
||||
checkprops r4 -l 1169.86
|
||||
|
@@ -23,9 +23,27 @@ generated r2 sweep_hist pr_2
|
||||
generated r3 sweep_hist pr_3
|
||||
generated r4 sweep_hist pr_4
|
||||
|
||||
checknbshapes r1 -face 12
|
||||
checkprops r1 -s 275.124
|
||||
checknbshapes r2 -face 9
|
||||
checkprops r2 -s 189.425
|
||||
checknbshapes r3 -face 9
|
||||
checkprops r3 -s 189.425
|
||||
checknbshapes r4 -face 12
|
||||
checkprops r4 -s 275.124
|
||||
|
||||
explode pr v
|
||||
|
||||
generated r1 sweep_hist pr_1
|
||||
generated r2 sweep_hist pr_2
|
||||
generated r3 sweep_hist pr_3
|
||||
generated r4 sweep_hist pr_4
|
||||
|
||||
checknbshapes r1 -edge 12
|
||||
checkprops r1 -l 78.8496
|
||||
checknbshapes r2 -edge 9
|
||||
checkprops r2 -l 57.4248
|
||||
checknbshapes r3 -edge 6
|
||||
checkprops r3 -l 36
|
||||
checknbshapes r4 -edge 9
|
||||
checkprops r4 -l 57.4248
|
||||
|
56
tests/bugs/modalg_7/bug30186_1
Normal file
56
tests/bugs/modalg_7/bug30186_1
Normal file
@@ -0,0 +1,56 @@
|
||||
puts "============"
|
||||
puts "OCC30186"
|
||||
puts "============"
|
||||
puts ""
|
||||
##############################################################################
|
||||
# BRepOffsetAPI_MakePipe Generated() method produces no result for spine edges
|
||||
##############################################################################
|
||||
|
||||
restore [locate_data_file bug24586_base.brep] base
|
||||
restore [locate_data_file bug24586_path.brep] path
|
||||
|
||||
pipe q path base
|
||||
savehistory pipe_hist
|
||||
|
||||
explode base
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r6 pipe_hist base_6
|
||||
checknbshapes r1 -vertex 16 -edge 28 -wire 14 -face 14 -shell 1 -solid 1
|
||||
checknbshapes r6 -vertex 24 -edge 42 -wire 20 -face 20 -shell 1 -solid 1
|
||||
checkprops r1 -v 53274.3
|
||||
checkprops r6 -v 194248
|
||||
|
||||
explode base e
|
||||
|
||||
generated r4 pipe_hist base_4
|
||||
generated r34 pipe_hist base_34
|
||||
checknbshapes r4 -vertex 8 -edge 10 -wire 3 -face 3
|
||||
checknbshapes r34 -vertex 8 -edge 10 -wire 3 -face 3
|
||||
checkprops r4 -s 5170.35
|
||||
checkprops r34 -s 8455.75
|
||||
|
||||
explode base v
|
||||
|
||||
generated r6 pipe_hist base_6
|
||||
generated r13 pipe_hist base_13
|
||||
checkprops r6 -l 517.035
|
||||
checkprops r13 -l 454.204
|
||||
|
||||
explode path
|
||||
|
||||
generated r1 pipe_hist path_1
|
||||
generated r2 pipe_hist path_2
|
||||
generated r3 pipe_hist path_3
|
||||
checknbshapes r1 -vertex 82 -edge 169 -wire 64 -face 64
|
||||
checknbshapes r2 -vertex 82 -edge 169 -wire 64 -face 64
|
||||
checknbshapes r3 -vertex 82 -edge 169 -wire 64 -face 64
|
||||
checkprops r1 -s 68000
|
||||
checkprops r2 -s 138858
|
||||
checkprops r3 -s 102000
|
||||
|
||||
explode path v
|
||||
|
||||
generated r2 pipe_hist path_2
|
||||
checknbshapes r2 -vertex 41 -edge 64
|
||||
checkprops r2 -l 680
|
56
tests/bugs/modalg_7/bug30186_2
Normal file
56
tests/bugs/modalg_7/bug30186_2
Normal file
@@ -0,0 +1,56 @@
|
||||
puts "============"
|
||||
puts "OCC30186"
|
||||
puts "============"
|
||||
puts ""
|
||||
##############################################################################
|
||||
# BRepOffsetAPI_MakePipe Generated() method produces no result for spine edges
|
||||
##############################################################################
|
||||
|
||||
restore [locate_data_file bug23903_base.brep] base
|
||||
restore [locate_data_file bug30186_BlendedContour.brep] path
|
||||
|
||||
pipe q path base
|
||||
savehistory pipe_hist
|
||||
|
||||
explode base
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r2 pipe_hist base_2
|
||||
checknbshapes r1 -vertex 16 -edge 32 -wire 16 -face 16 -shell 1 -solid 1
|
||||
checknbshapes r2 -vertex 16 -edge 32 -wire 16 -face 16 -shell 1 -solid 1
|
||||
checkprops r1 -v 1182.77
|
||||
checkprops r2 -v 1182.77
|
||||
|
||||
explode base e
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r2 pipe_hist base_2
|
||||
checknbshapes r1 -vertex 16 -edge 24 -wire 8 -face 8
|
||||
checknbshapes r2 -vertex 16 -edge 24 -wire 8 -face 8
|
||||
checkprops r1 -s 470.61
|
||||
checkprops r2 -s 739.232
|
||||
|
||||
explode base v
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r2 pipe_hist base_2
|
||||
checkprops r1 -l 53.4265
|
||||
checkprops r2 -l 93.6389
|
||||
|
||||
explode path
|
||||
|
||||
generated r1 pipe_hist path_1
|
||||
generated r3 pipe_hist path_3
|
||||
generated r4 pipe_hist path_4
|
||||
checknbshapes r1 -vertex 4 -edge 8 -wire 3 -face 3
|
||||
checknbshapes r3 -vertex 4 -edge 8 -wire 3 -face 3
|
||||
checknbshapes r4 -vertex 4 -edge 8 -wire 3 -face 3
|
||||
checkprops r1 -s 318.074
|
||||
checkprops r3 -s 323.376
|
||||
checkprops r4 -s 166.543
|
||||
|
||||
explode path v
|
||||
|
||||
generated r1 pipe_hist path_1
|
||||
checknbshapes r1 -vertex 2 -edge 3
|
||||
checkprops r1 -l 26.5062
|
62
tests/bugs/modalg_7/bug30186_3
Normal file
62
tests/bugs/modalg_7/bug30186_3
Normal file
@@ -0,0 +1,62 @@
|
||||
puts "============"
|
||||
puts "OCC30186"
|
||||
puts "============"
|
||||
puts ""
|
||||
##############################################################################
|
||||
# BRepOffsetAPI_MakePipe Generated() method produces no result for spine edges
|
||||
##############################################################################
|
||||
|
||||
restore [locate_data_file bug25272_base.brep] base
|
||||
restore [locate_data_file bug25272_path.brep] path
|
||||
|
||||
pipe q path base
|
||||
savehistory pipe_hist
|
||||
|
||||
explode base
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r2 pipe_hist base_2
|
||||
checknbshapes r1 -vertex 16 -edge 32 -wire 16 -face 16 -shell 1 -solid 1
|
||||
checknbshapes r2 -vertex 16 -edge 32 -wire 16 -face 16 -shell 1 -solid 1
|
||||
checkprops r1 -v 1.88923
|
||||
checkprops r2 -v 1.88923
|
||||
|
||||
explode base e
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r2 pipe_hist base_2
|
||||
generated r3 pipe_hist base_3
|
||||
checknbshapes r1 -vertex 8 -edge 12 -wire 4 -face 4
|
||||
checknbshapes r2 -vertex 8 -edge 12 -wire 4 -face 4
|
||||
checknbshapes r3 -vertex 8 -edge 12 -wire 4 -face 4
|
||||
checkprops r1 -s 93.5894
|
||||
checkprops r2 -s 95.333
|
||||
checkprops r3 -s 1.1447
|
||||
|
||||
explode base v
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r3 pipe_hist base_3
|
||||
checkprops r1 -l 57.2976 -deps 1.e-7
|
||||
checkprops r3 -l 57.172 -deps 1.e-7
|
||||
|
||||
explode path
|
||||
|
||||
generated r1 pipe_hist path_1
|
||||
generated r2 pipe_hist path_2
|
||||
generated r3 pipe_hist path_3
|
||||
generated r4 pipe_hist path_4
|
||||
checknbshapes r1 -vertex 16 -edge 32 -wire 12 -face 12
|
||||
checknbshapes r2 -vertex 16 -edge 32 -wire 12 -face 12
|
||||
checknbshapes r3 -vertex 16 -edge 32 -wire 12 -face 12
|
||||
checknbshapes r4 -vertex 16 -edge 32 -wire 12 -face 12
|
||||
checkprops r1 -s 191.581
|
||||
checkprops r2 -s 100.311
|
||||
checkprops r3 -s 191.581
|
||||
checkprops r4 -s 328.584
|
||||
|
||||
explode path v
|
||||
|
||||
generated r1 pipe_hist path_1
|
||||
checknbshapes r1 -vertex 8 -edge 12
|
||||
checkprops r1 -l 12.772
|
52
tests/bugs/modalg_7/bug30186_4
Normal file
52
tests/bugs/modalg_7/bug30186_4
Normal file
@@ -0,0 +1,52 @@
|
||||
puts "============"
|
||||
puts "OCC30186"
|
||||
puts "============"
|
||||
puts ""
|
||||
##############################################################################
|
||||
# BRepOffsetAPI_MakePipe Generated() method produces no result for spine edges
|
||||
##############################################################################
|
||||
|
||||
restore [locate_data_file OCC25887_shape.brep] a
|
||||
explode a
|
||||
renamevar a_1 path
|
||||
renamevar a_2 base
|
||||
|
||||
pipe q path base
|
||||
savehistory pipe_hist
|
||||
|
||||
explode base
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
checknbshapes r1 -vertex 6 -edge 10 -wire 8 -face 6 -shell 1 -solid 1
|
||||
checkprops r1 -v 0.689148
|
||||
|
||||
explode base e
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r2 pipe_hist base_2
|
||||
checknbshapes r1 -vertex 3 -edge 5 -wire 2 -face 2
|
||||
checknbshapes r2 -vertex 3 -edge 5 -wire 2 -face 2
|
||||
checkprops r1 -s 35.3469
|
||||
checkprops r2 -s 33.5796
|
||||
|
||||
explode base v
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r2 pipe_hist base_2
|
||||
checkprops r1 -l 14.0641
|
||||
checkprops r2 -l 14.0641
|
||||
|
||||
explode path
|
||||
|
||||
generated r1 pipe_hist path_1
|
||||
generated r2 pipe_hist path_2
|
||||
checknbshapes r1 -vertex 4 -edge 6 -wire 2 -face 2
|
||||
checknbshapes r2 -vertex 4 -edge 6 -wire 2 -face 2
|
||||
checkprops r1 -s 35.9763
|
||||
checkprops r2 -s 32.9503
|
||||
|
||||
explode path v
|
||||
|
||||
generated r2 pipe_hist path_2
|
||||
checknbshapes r2 -vertex 2 -edge 2
|
||||
checkprops r2 -l 4.90088
|
56
tests/bugs/modalg_7/bug30186_5
Normal file
56
tests/bugs/modalg_7/bug30186_5
Normal file
@@ -0,0 +1,56 @@
|
||||
puts "============"
|
||||
puts "OCC30186"
|
||||
puts "============"
|
||||
puts ""
|
||||
##############################################################################
|
||||
# BRepOffsetAPI_MakePipe Generated() method produces no result for spine edges
|
||||
##############################################################################
|
||||
|
||||
restore [locate_data_file bug25480_part1.brep] base
|
||||
restore [locate_data_file bug25480_part2.brep] path
|
||||
|
||||
pipe q path base
|
||||
savehistory pipe_hist
|
||||
|
||||
explode base f
|
||||
|
||||
generated r1 pipe_hist base_1
|
||||
generated r8 pipe_hist base_8
|
||||
checknbshapes r1 -vertex 16 -edge 28 -wire 14 -face 14 -shell 1 -solid 1
|
||||
checknbshapes r8 -vertex 16 -edge 28 -wire 14 -face 14 -shell 1 -solid 1
|
||||
checkprops r1 -v 3219.23
|
||||
checkprops r8 -v 3181.78
|
||||
|
||||
explode base e
|
||||
|
||||
generated r10 pipe_hist base_10
|
||||
generated r25 pipe_hist base_25
|
||||
checknbshapes r10 -vertex 8 -edge 10 -wire 3 -face 3
|
||||
checknbshapes r25 -vertex 8 -edge 10 -wire 3 -face 3
|
||||
checkprops r10 -s 471.736
|
||||
checkprops r25 -s 1258.1
|
||||
|
||||
explode base v
|
||||
|
||||
generated r10 pipe_hist base_10
|
||||
generated r25 pipe_hist base_25
|
||||
checkprops r10 -l 186.888
|
||||
checkprops r25 -l 174.231
|
||||
|
||||
explode path
|
||||
|
||||
generated r1 pipe_hist path_1
|
||||
generated r2 pipe_hist path_2
|
||||
generated r3 pipe_hist path_3
|
||||
checknbshapes r1 -vertex 112 -edge 168 -wire 56 -face 56
|
||||
checknbshapes r2 -vertex 112 -edge 168 -wire 56 -face 56
|
||||
checknbshapes r3 -vertex 112 -edge 168 -wire 56 -face 56
|
||||
checkprops r1 -s 7017.89
|
||||
checkprops r2 -s 29728.3
|
||||
checkprops r3 -s 11198.9
|
||||
|
||||
explode path v
|
||||
|
||||
generated r3 pipe_hist path_3
|
||||
checknbshapes r3 -vertex 56 -edge 56
|
||||
checkprops r3 -l 266.84
|
Reference in New Issue
Block a user