mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0029814: Modeling Data - add method TopoDS_Shape::NbChildren() for simple check of sub-shapes number
TopoDS_Shape::NbChildren() - new method has been introduced. TopoDS_Shape.lxx, TopoDS_TShape.lxx - inline methods have been moved to hxx. TopoDS_TShape_Flags has been redeclared as enumeration instead of preprocessor macros. Cyclic dependency between headers TopoDS_Shape.hxx and TopoDS_TShape.hxx eliminated. Places where TopoDS_Iterator is used only for calculation of number of sub-shapes are updated to use NbChildren() instead
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include <BRep_TEdge.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TopAbs.hxx>
|
||||
#include <TopoDS_TShape.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(BRep_TEdge,TopoDS_TEdge)
|
||||
|
||||
|
@@ -21,7 +21,7 @@
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TopAbs.hxx>
|
||||
#include <TopLoc_Location.hxx>
|
||||
#include <TopoDS_TShape.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(BRep_TFace,TopoDS_TFace)
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TopAbs.hxx>
|
||||
#include <TopoDS_TShape.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(BRep_TVertex,TopoDS_TVertex)
|
||||
|
||||
|
Reference in New Issue
Block a user