From: asl Date: Mon, 4 Jul 2005 10:28:17 +0000 (+0000) Subject: New methods for SMESH_Mesh X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cf285acaa8cbdc93fd05c2d02031c731dd575024;p=modules%2Fsmesh.git New methods for SMESH_Mesh GetElementType - returns element type by id --- diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index 9501c4d5d..3982ecdac 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -1418,3 +1418,12 @@ ostream& SMESH_Mesh::Dump(ostream& save) save << "===========================================================================" << endl; return save; } + +//======================================================================= +//function : GetElementType +//purpose : Returns type of mesh element with certain id +//======================================================================= +SMDSAbs_ElementType SMESH_Mesh::GetElementType( const int id, const bool iselem ) +{ + return _myMeshDS->GetElementType( id, iselem ); +} diff --git a/src/SMESH/SMESH_Mesh.hxx b/src/SMESH/SMESH_Mesh.hxx index a91a8861b..15916da55 100644 --- a/src/SMESH/SMESH_Mesh.hxx +++ b/src/SMESH/SMESH_Mesh.hxx @@ -222,6 +222,8 @@ public: bool RemovePropagationChain (const TopoDS_Shape& theMainEdge); bool BuildPropagationChain (const TopoDS_Shape& theMainEdge); + SMDSAbs_ElementType GetElementType( const int id, const bool iselem ); + // ostream& Dump(ostream & save);