Salome HOME
PAL12992. Add MaxShapeIndex()
authoreap <eap@opencascade.com>
Mon, 7 Aug 2006 12:06:43 +0000 (12:06 +0000)
committereap <eap@opencascade.com>
Mon, 7 Aug 2006 12:06:43 +0000 (12:06 +0000)
src/SMESHDS/SMESHDS_Mesh.hxx

index cecd0f33fc3cdbd878979e6a9a909e320a4fb4ad..d2b2257ded0d6614a6514c98f7bb25fa47949700 100644 (file)
@@ -435,6 +435,7 @@ public:
   void ClearScript();
   int ShapeToIndex(const TopoDS_Shape & aShape) const;
   const TopoDS_Shape& IndexToShape(int ShapeIndex) const;
+  int MaxShapeIndex() const { return myIndexToShape.Extent(); }
 
   SMESHDS_SubMesh * NewSubMesh(int Index);
   int AddCompoundSubmesh(const TopoDS_Shape& S, TopAbs_ShapeEnum type = TopAbs_SHAPE);