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 cecd0f3..d2b2257 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);