Polygons and Polyhedra creation

Functions

void MEDMEM::MESHING::setPolygonsConnectivity (const int *ConnectivityIndex, const int *ConnectivityValue, int nbOfPolygons, const MED_EN::medEntityMesh Entity) throw (MEDEXCEPTION)
void MEDMEM::MESHING::setPolyhedraConnectivity (const int *PolyhedronIndex, const int *FacesIndex, const int *Nodes, int nbOfPolyhedra, const MED_EN::medEntityMesh Entity=MED_EN::MED_CELL) throw (MEDEXCEPTION)

Detailed Description

These methods belong to the meshing class and are necessary for creating the connectivities of MED_POLYHEDRON and MED_POLYGON elements.


Function Documentation

void MEDMEM::MESHING::setPolygonsConnectivity ( const int *  ConnectivityIndex,
const int *  Connectivity,
int  nbOfPolygons,
const MED_EN::medEntityMesh  Entity 
) throw (MEDEXCEPTION) [inherited]

Method setting the connectivity for MED_POLYGON elements

Parameters:
ConnectivityIndex polygon connectivity index
Connectivity polygon connectivity
nbOfPolygons number of polygons defined
Entity entity of the polygon

The Entity parameter specifies whether the polygon is the highest order element (MED_CELL) or it is a 2D element in a 3D mesh (MED_FACE).

This method is fully compatible with the MESHING::setConnectivity method. The following code excerpt creates two polygons with 5 and 4 nodes respectively.

MESHING myMeshing ;
myMeshing.setCoordinates(SpaceDimension,NumberOfNodes,Coordinates,System,Mode);

int conn_index[3]={1,6,10};
int conn[9]={1,2,3,4,5,5,4,6,7};
int nb_poly=2;
meshing.setPolygonsConnectivity(conn_index, conn, nb_poly, MED_CELL)

Referenced by MEDMEM::SUPPORT::makeMesh().

void MEDMEM::MESHING::setPolyhedraConnectivity ( const int *  PolyhedronIndex,
const int *  FacesIndex,
const int *  Nodes,
int  nbOfPolyhedra,
const MED_EN::medEntityMesh  Entity = MED_EN::MED_CELL 
) throw (MEDEXCEPTION) [inherited]

Method setting the connectivity for MED_POLYHEDRON elements

Parameters:
PolyhedronIndex polyhedra connectivity index
FacesIndex polyhedra face connectivity index
Nodes polyhedra connectivity
nbOfPolyhedra number of polyhedra defined
Entity deprecated parameter

Referenced by MEDMEM::SUPPORT::makeMesh().

Generated on Sat May 1 03:22:41 2010 for Med Memory Users' Guide by  doxygen 1.6.3