+//================================================================================
+/*!
+ * \brief Return true if index of node is valid (0 <= ind < NbNodes())
+ * \param ind - node index
+ * \retval bool - index check result
+ */
+//================================================================================
+
+bool SMDS_MeshElement::IsValidIndex(const int ind) const
+{
+ return ( ind>-1 && ind<NbNodes() );
+}
+
+//================================================================================
+/*!
+ * \brief Return a valid corner node index, fixing the given one if necessary
+ * \param ind - node index
+ * \retval int - valid node index
+ */
+//================================================================================
+
+int SMDS_MeshElement::WrappedIndex(const int ind) const
+{
+ if ( ind < 0 ) return NbCornerNodes() + ind % NbCornerNodes();
+ if ( ind >= NbCornerNodes() ) return ind % NbCornerNodes();
+ return ind;
+}
+
+//================================================================================
+/*!
+ * \brief Check if a node belongs to the element
+ * \param node - the node to check
+ * \retval int - node index within the element, -1 if not found
+ */
+//================================================================================
+
+int SMDS_MeshElement::GetNodeIndex( const SMDS_MeshNode* node ) const
+{
+ SMDS_ElemIteratorPtr nIt = nodesIterator();
+ for ( int i = 0; nIt->more(); ++i )
+ if ( nIt->next() == node )
+ return i;
+ return -1;
+}
+
+//================================================================================
+/*!
+ * \brief Return ID of an element
+ */
+//================================================================================
+
+smIdType SMDS_MeshElement::GetID() const
+{
+ return myHolder ? myHolder->GetID( this ) : -1;
+}
+
+//================================================================================
+/*!
+ * \brief Set ID of a shape this element was generated on
+ */
+//================================================================================
+
+void SMDS_MeshElement::setShapeID( const int shapeID ) const
+{
+ const_cast<SMDS_ElementChunk*>( myHolder )->SetShapeID( this, shapeID );
+}
+
+//================================================================================
+/*!
+ * \brief Return ID of a shape this element was generated on
+ */
+//================================================================================
+
+int SMDS_MeshElement::GetShapeID() const
+{
+ return myHolder->GetShapeID( this );
+}
+
+//================================================================================
+/*!
+ * \brief Return VTK ID of this element
+ */
+//================================================================================
+
+vtkIdType SMDS_MeshElement::GetVtkID() const
+{
+ return myHolder->GetVtkID( this );
+}
+
+//================================================================================
+/*!
+ * \brief Mark this element
+ */
+//================================================================================
+
+void SMDS_MeshElement::setIsMarked( bool is ) const
+{
+ const_cast<SMDS_ElementChunk*>( myHolder )->SetIsMarked( this, is );
+}
+
+//================================================================================
+/*!
+ * \brief Check if this element is marked
+ */
+//================================================================================
+
+bool SMDS_MeshElement::isMarked() const
+{
+ return myHolder->IsMarked( this );
+}
+
+//================================================================================
+/*!
+ * \brief Store VTK ID
+ */
+//================================================================================
+
+void SMDS_MeshElement::setVtkID( const vtkIdType vtkID )
+{
+ myHolder->SetVTKID( this, vtkID );
+}
+
+//================================================================================
+/*!
+ * \brief Return the mesh this element belongs to
+ */
+//================================================================================
+
+SMDS_Mesh* SMDS_MeshElement::GetMesh() const
+{
+ return const_cast<SMDS_ElementChunk*>( myHolder )->GetMesh();
+}
+
+//================================================================================
+/*!
+ * \brief Return a SMDS_UnstructuredGrid
+ */
+//================================================================================
+
+SMDS_UnstructuredGrid* SMDS_MeshElement::getGrid() const
+{
+ return const_cast<SMDS_ElementChunk*>( myHolder )->GetMesh()->GetGrid();
+}
+
+//================================================================================
+/*!
+ * \brief Print self
+ */
+//================================================================================
+