mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
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
22 lines
488 B
Plaintext
Executable File
22 lines
488 B
Plaintext
Executable File
puts "========"
|
|
puts "CR25202"
|
|
puts "========"
|
|
puts ""
|
|
#########################################
|
|
## Incorrect value of IsClosed flag in shapes produced by some algorithms
|
|
#########################################
|
|
|
|
box b 100 100 100
|
|
explode b sh
|
|
trotate b_1 0 0 0 1 0 0 45
|
|
removeloc result b_1
|
|
|
|
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
|