mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
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.
38 lines
926 B
Plaintext
38 lines
926 B
Plaintext
puts "============"
|
|
puts "OCC26150"
|
|
puts "============"
|
|
puts ""
|
|
#########################################################################
|
|
# BRepOffsetAPI_ThruSections doesn't implement history method Generated()
|
|
#########################################################################
|
|
|
|
polyline w1 -10 -10 0 10 -10 0 10 10 0 -10 10 0 -10 -10 0
|
|
polyline w2 -10 -10 20 10 -10 20 10 10 20 -10 10 20 -10 -10 20
|
|
trotate w2 0 0 0 0 0 1 45
|
|
polyline w3 -10 -10 40 10 -10 40 10 10 40 -10 10 40 -10 -10 40
|
|
trotate w3 0 0 0 0 0 1 90
|
|
vertex v1 0 0 -30
|
|
vertex v2 0 0 70
|
|
|
|
explode w1
|
|
|
|
thrusections -N r 1 0 v1 w1 w2 w3 v2
|
|
|
|
genthrus r1 w1_1
|
|
genthrus r2 w1_2
|
|
genthrus r3 w1_3
|
|
genthrus r4 w1_4
|
|
|
|
checkprops r1 -s 1694.42
|
|
checkprops r2 -s 1694.42
|
|
checkprops r3 -s 1694.42
|
|
checkprops r4 -s 1694.42
|
|
|
|
genthrus r5 v1
|
|
genthrus r6 v2
|
|
|
|
checknbshapes r5 -edge 4
|
|
checkprops r5 -l 466.764
|
|
checknbshapes r6 -edge 4
|
|
checkprops r6 -l 466.764
|