From: eap Date: Mon, 7 Aug 2006 12:06:43 +0000 (+0000) Subject: PAL12992. Add MaxShapeIndex() X-Git-Tag: For_OCT_611~5 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=f644c7bfdcdf5fd74fb6209a297f9e934bb2e55d PAL12992. Add MaxShapeIndex() --- diff --git a/src/SMESHDS/SMESHDS_Mesh.hxx b/src/SMESHDS/SMESHDS_Mesh.hxx index cecd0f33f..d2b2257de 100644 --- a/src/SMESHDS/SMESHDS_Mesh.hxx +++ b/src/SMESHDS/SMESHDS_Mesh.hxx @@ -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);