26 #ifndef _SMDS_MeshElement_HeaderFile 27 #define _SMDS_MeshElement_HeaderFile 58 virtual int NbNodes()
const;
59 virtual int NbEdges()
const;
60 virtual int NbFaces()
const;
65 virtual bool IsPoly()
const {
return false; };
66 virtual bool IsQuadratic()
const;
99 virtual bool IsValidIndex(
const int ind)
const;
107 if ( ind < 0 )
return NbNodes() + ind % NbNodes();
108 if ( ind >= NbNodes() )
return ind % NbNodes();
121 virtual void Print(std::ostream & OS)
const;
bool BindID(int ID, SMDS_MeshElement *elem)
boost::shared_ptr< SMDS_Iterator< const SMDS_MeshElement * > > SMDS_ElemIteratorPtr
SMDSAbs_ElementType
Type (node, edge, face or volume) of elements.
int WrappedIndex(const int ind) const
Return a valid node index, fixing the given one if necessary.
virtual bool IsPoly() const
const SMDS_MeshNode * GetNodeWrap(const int ind) const
Return node by its index.
bool operator()(const SMDS_MeshElement *e1, const SMDS_MeshElement *e2) const
Comparator of elements by ID for usage in std containers.