Salome HOME
New methods for SMESH_Mesh
authorasl <asl@opencascade.com>
Mon, 4 Jul 2005 10:28:17 +0000 (10:28 +0000)
committerasl <asl@opencascade.com>
Mon, 4 Jul 2005 10:28:17 +0000 (10:28 +0000)
GetElementType - returns element type by id

src/SMESH/SMESH_Mesh.cxx
src/SMESH/SMESH_Mesh.hxx

index 9501c4d5d6edd25d43bd45464f1ce697960c7eae..3982ecdac79c6f5720033efb43d384a3a449e7da 100644 (file)
@@ -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 );
+}
index a91a8861bf0157125b55dfc93d7fe91c1a55cafe..15916da55ede8d5da7bfe7370ded4b5b96553a8e 100644 (file)
@@ -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);