1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/modalg_6/bug27386_3
jgv cab49d68fc 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.
2018-11-09 17:32:39 +03:00

84 lines
1.7 KiB
Plaintext

puts "============"
puts "OCC27386"
puts "============"
puts ""
#####################################################################
# BRepOffsetAPI_MakePipeShell does not provide history of generations
#####################################################################
restore [locate_data_file bug27386_sp.brep] sp
polyline pr1 -5 0 0 -5 -5 0 5 -5 0 5 0 0
restore [locate_data_file bug27386_pr2.brep] pr2
explode pr2
wire pr2 pr2_1 pr2_2
circle cc 0 100 0 5
trim cc cc 0 pi
mkedge pr3 cc
wire pr3 pr3
donly sp pr1 pr2 pr3
mksweep sp
addsweep pr3
addsweep pr1
addsweep pr2
buildsweep q
explode pr1
explode pr2
explode pr3
savehistory sweep_hist
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
generated r1_1 sweep_hist pr1_1
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