Go to the documentation of this file.
26 #ifndef _SMDS_MeshElement_HeaderFile
27 #define _SMDS_MeshElement_HeaderFile
65 virtual bool IsPoly()
const {
return false; };
107 if ( ind < 0 )
return NbNodes() + ind % NbNodes();
108 if ( ind >= NbNodes() )
return ind % NbNodes();
121 virtual void Print(std::ostream & OS)
const;
virtual int NbNodes() const
int GetNodeIndex(const SMDS_MeshNode *node) const
Check if a node belongs to the element.
boost::shared_ptr< SMDS_Iterator< const SMDS_MeshElement * > > SMDS_ElemIteratorPtr
SMDS_ElemIteratorPtr edgesIterator() const
virtual SMDSAbs_ElementType GetType() const =0
Return the type of the current element.
SMDS_ElemIteratorPtr facesIterator() const
int WrappedIndex(const int ind) const
Return a valid node index, fixing the given one if necessary.
virtual const SMDS_MeshNode * GetNode(const int ind) const
Return node by its index.
SMDS_ElemIteratorPtr nodesIterator() const
virtual bool IsMediumNode(const SMDS_MeshNode *node) const
Comparator of elements by ID for usage in std containers.
virtual void Print(std::ostream &OS) const
virtual SMDSAbs_EntityType GetEntityType() const =0
Return type of entity.
virtual int NbEdges() const
virtual bool IsPoly() const
virtual int NbFaces() const
bool operator()(const SMDS_MeshElement *e1, const SMDS_MeshElement *e2) const
const SMDS_MeshNode * GetNodeWrap(const int ind) const
Return node by its index.
SMDSAbs_ElementType
Type (node, edge, face or volume) of elements.
virtual bool IsQuadratic() const
SMDS_MeshElement(int ID=-1)
bool BindID(int ID, SMDS_MeshElement *elem)
virtual bool IsValidIndex(const int ind) const
Return true if index of node is valid (0 <= ind < NbNodes())
virtual SMDS_ElemIteratorPtr elementsIterator(SMDSAbs_ElementType type) const