mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0024706: Solids produced by BOP do not have flag Closed set in shells
Flag CLOSED is set for closed shells created during perform of Boolean Operation. Test cases for issue CR24706
This commit is contained in:
parent
65b88edb4b
commit
df80c6ddda
@ -476,6 +476,7 @@ void BOPAlgo_ShellSplitter::MakeShells()
|
|||||||
//
|
//
|
||||||
const BOPCol_ListOfShape& aLF=aCB.Shapes();
|
const BOPCol_ListOfShape& aLF=aCB.Shapes();
|
||||||
MakeShell(aLF, aShell);
|
MakeShell(aLF, aShell);
|
||||||
|
aShell.TShape()->Closed(Standard_True);
|
||||||
myShells.Append(aShell);
|
myShells.Append(aShell);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -493,6 +494,7 @@ void BOPAlgo_ShellSplitter::MakeShells()
|
|||||||
aIt.Initialize(aLS);
|
aIt.Initialize(aLS);
|
||||||
for (; aIt.More(); aIt.Next()) {
|
for (; aIt.More(); aIt.Next()) {
|
||||||
const TopoDS_Shape& aShell=aIt.Value();
|
const TopoDS_Shape& aShell=aIt.Value();
|
||||||
|
aShell.TShape()->Closed(Standard_True);
|
||||||
myShells.Append(aShell);
|
myShells.Append(aShell);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
19
tests/bugs/modalg_5/bug24706
Executable file
19
tests/bugs/modalg_5/bug24706
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
puts "========"
|
||||||
|
puts "CR24706"
|
||||||
|
puts "========"
|
||||||
|
puts ""
|
||||||
|
#########################################
|
||||||
|
## Solids produced by BOP do not have flag Closed set in shells
|
||||||
|
#########################################
|
||||||
|
|
||||||
|
box b 10 10 10
|
||||||
|
psphere s 2
|
||||||
|
bcut r b s
|
||||||
|
|
||||||
|
explode r sh
|
||||||
|
set info [whatis r_1]
|
||||||
|
if { [regexp {Closed} ${info}] } {
|
||||||
|
puts "OK : Flag CLOSED is set for closed shells created during perform of Boolean Operation"
|
||||||
|
} else {
|
||||||
|
puts "Faulty : Flag CLOSED is not set for closed shells created during perform of Boolean Operation"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user