This example shows the use of connectivity retrieval methods on a mesh which corresponds to the four-element mesh given in figure ??. Note the use of connectivity and connnectivity index tables, and the offsets used to convert Fortran-style numbering to C arrays.
The output of this program reads :
Number of types : 3 Type #0 Element 1 : 1 2 3 Type #1 Element 1 : 2 4 5 3 Element 2 : 5 6 7 8 Type #2 Element 1 : 4 6 5 10 11 9
A more complete example involving descending connectivities can be found in MESHconnectivities.cxx
and MESHconnectivities.py
.