New methods for SMESH_Mesh

GetElementType - returns element type by id
This commit is contained in:
asl 2005-07-04 10:28:17 +00:00
parent 3ef3246244
commit cf285acaa8
2 changed files with 11 additions and 0 deletions

View 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 );
}

View 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);