read_example.cxx

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.

Generated on Sat May 1 01:31:34 2010 for Med Memory Users' Guide by  doxygen 1.6.3