1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/moddata_3/bug25202_1
abv ab860031bd 0025202: Incorrect value of IsClosed flag in shapes produced by some algorithms
Method BRep_Tool::IsClosed() extended to analyze closure of wires in addition to shells and solids.
External and Internal edges and vertices are ignored in this check.
Analysis of compounds is disabled.

Update of flag Closed according to actual state is added in most places where new shells are constructed.

Draw-command and test case for issue CR25202
2014-10-10 16:28:36 +04:00

34 lines
699 B
Plaintext
Executable File

puts "========"
puts "CR25202"
puts "========"
puts ""
#########################################
## Incorrect value of IsClosed flag in shapes produced by some algorithms
#########################################
pload QAcommands
box b 100 100 100
vertex v1 0 0 50
explode b v
edge ee1 b_2 v1
edge ee2 v1 b_1
explode b e
wire ww1 ee1 ee2 b_2 b_3 b_4
wire ww2 ee1 ee2 b_9 b_10 b_5
mkplane ff1 ww1
mkplane ff2 ww2
explode b f
#Replaced edge lies between b_1 and b_3 faces.
OCC25202 result b 1 ff1 3 ff2
set info [whatis result]
if { [regexp {Closed} ${info}] } {
puts "OK : value of IsClosed flag is correct"
} else {
puts "Error : value of IsClosed flag is not correct"
}
set 2dviewer 1