From f644c7bfdcdf5fd74fb6209a297f9e934bb2e55d Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 7 Aug 2006 12:06:43 +0000 Subject: [PATCH] PAL12992. Add MaxShapeIndex() --- src/SMESHDS/SMESHDS_Mesh.hxx | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2