1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/modalg_6/bug26150_15
jgv 50258e776a 0026150: BRepOffsetAPI_ThruSections doesn't implement history method Generated().
Virtual method Generated is redefined. Now it returns:

- chain of generated faces for sub-edge of a profile;
- chain of generated edges for sub-vertex of a profile;
- bunch of chains of generated edges for start or end vertex if it is degenerated section.

Correction according to the remarks.

Fix compiler's warnings and add 4 new test cases.

Correction of mistake.

Compilation warnings are gone.
2017-03-03 16:11:24 +03:00

90 lines
1.9 KiB
Plaintext

puts "============"
puts "OCC26150"
puts "============"
puts ""
#########################################################################
# BRepOffsetAPI_ThruSections doesn't implement history method Generated()
#########################################################################
restore [locate_data_file bug27386_pr2.brep] pr2
polyline pr1 5 0 0 5 -5 0 -5 -5 0 -5 0 0
explode pr2
wire pr2 pr2_1 pr2_2
circle cc 0 100 0 5
trim cc cc 0 pi
mkedge cc cc
wire pr3 cc
beziercurve c1 3 0 50 -45 5 50 -50 0 50 -55
beziercurve c2 3 0 50 -45 -5 50 -50 0 50 -55
trim c1 c1 0.5 1
trim c2 c2 0.5 1
mkedge e1 c1
mkedge e2 c2
orientation e2 R
wire pr4 e1 e2
donly pr1 pr2 pr3 pr4
explode pr1
explode pr2
explode pr3
explode pr4
thrusections r 1 1 pr1 pr2 pr3 pr4 pr1
genthrus r1 pr1_1
genthrus r2 pr1_2
genthrus r3 pr1_3
genthrus r4 pr2_1
genthrus r5 pr2_2
genthrus r6 pr3_1
genthrus r7 pr4_1
genthrus r8 pr4_2
checknbshapes r1 -face 4
checkprops r1 -s 902.335
checknbshapes r2 -face 8
checkprops r2 -s 2278.73
checknbshapes r3 -face 4
checkprops r3 -s 902.335
checknbshapes r4 -face 8
checkprops r4 -s 2041.7
checknbshapes r5 -face 8
checkprops r5 -s 2041.7
checknbshapes r6 -face 16
checkprops r6 -s 4083.4
checknbshapes r7 -face 8
checkprops r7 -s 2041.7
checknbshapes r8 -face 8
checkprops r8 -s 2041.7
explode pr1 v
explode pr2 v
explode pr3 v
explode pr4 v
genthrus r9 pr1_1
genthrus r10 pr1_2
genthrus r11 pr1_3
genthrus r12 pr1_4
genthrus r13 pr2_1
genthrus r14 pr2_2
genthrus r15 pr2_3
genthrus r16 pr3_1
genthrus r17 pr3_2
genthrus r18 pr4_1
genthrus r19 pr4_2
genthrus r20 pr4_3
checkprops r9 -l 276.046
checkprops r10 -l 298.732
checkprops r11 -l 298.732
checkprops r12 -l 276.046
checkprops r13 -l 276.046
checkprops r14 -l 311.127
checkprops r15 -l 276.046
checkprops r16 -l 276.046
checkprops r17 -l 276.046
checkprops r18 -l 276.046
checkprops r19 -l 311.127
checkprops r20 -l 276.046