1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/heal/bug25333
gka 519b544671 0025333: Result wires obtained after TestHarness command "connectedges" contains internal edges
Fix contains protection in order to avoid addition in result wires INTERNAL or EXTERNAL edges during connecting edges in wires.

Test case for issue #25333
2014-10-09 16:04:15 +04:00

32 lines
884 B
Plaintext

puts "========"
puts "OCC25333"
puts "========"
puts ""
##########################################################################################
# Result wires obtained after TestHarness command "connectedges" contains internal edges
##########################################################################################
restore [locate_data_file bug25318_TheShapeTotal.brep] a
connectedges r a
set WireSet [explode r]
set ii 0
set IsFixed "TRUE"
while {$ii != [llength $WireSet]} {
set EdgeSet [explode [lindex $WireSet $ii]]
set iii 0
while {$iii != [llength $EdgeSet]} {
set EdgeInfo [whatis [lindex $EdgeSet $iii]]
if {[lindex $EdgeInfo 5] == "INTERNAL"} {
set IsFixed "FALSE"
}
set iii [expr $iii + 1]
}
set ii [expr $ii + 1]
}
if {$IsFixed == "FALSE"} {
puts "ERROR: OCC25333 is reproduced"
puts " Internal edge is detected"
}