DUNE Grid (unstable)

Dune::VTKWriter< GridView >::CornerIterator Class Reference

Iterate over the elements' corners. More...

#include <dune/grid/io/file/vtk/vtkwriter.hh>

Public Member Functions

int id () const
 Process-local consecutive zero-starting vertex id. More...
 

Detailed Description

template<class GridView>
class Dune::VTKWriter< GridView >::CornerIterator

Iterate over the elements' corners.

This class iterates over the elements, and within the elements over the corners. Each vertex in the grid can be a corner in multiple elements, and is visited once for each element it is associated with. This class differs from VertexIterator in that it visits the corners of a given element in VTK-ordering, and that it always visits a given vertex once for each element where that vertex is a corner in, independent of the data mode dm.

Dereferencing the iterator yields the current entity. Another useful method on the iterator itself is id(), which returns the number of the current corners associated vertex, in the numbering given by the iteration order of VertexIterator.

Member Function Documentation

◆ id()

template<class GridView >
int Dune::VTKWriter< GridView >::CornerIterator::id ( ) const
inline

Process-local consecutive zero-starting vertex id.

This method returns the number of this corners associated vertex, in the numbering given by the iteration order of VertexIterator.

References Dune::MultipleCodimMultipleGeomTypeMapper< GV >::subIndex().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (May 27, 22:36, 2026)