projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
0029814: Modeling Data - add method TopoDS_Shape::NbChildren() for simple check of...
[occt.git]
/
src
/
BRepOffset
/
BRepOffset_MakeOffset_1.cxx
diff --git
a/src/BRepOffset/BRepOffset_MakeOffset_1.cxx
b/src/BRepOffset/BRepOffset_MakeOffset_1.cxx
index
47ff3c4
..
69eeb28
100644
(file)
--- a/
src/BRepOffset/BRepOffset_MakeOffset_1.cxx
+++ b/
src/BRepOffset/BRepOffset_MakeOffset_1.cxx
@@
-2386,9
+2386,7
@@
Standard_Boolean CheckInvertedBlock(const TopoDS_Shape& theCB,
{
// For possible removal of the block:
// 1. There should be more than just one face in the block
- TopoDS_Iterator aItF(theCB);
- aItF.Next();
- if (!aItF.More()) {
+ if (theCB.NbChildren() < 2) {
return Standard_False;
}
//