Node coordinates settings

Functions

void MEDMEM::MESHING::setNumberOfNodes (const int NumberOfNodes)
void MEDMEM::MESHING::setCoordinates (const int SpaceDimension, const int NumberOfNodes, const double *Coordinates, const string System, const MED_EN::medModeSwitch Mode)

Function Documentation

void MEDMEM::MESHING::setNumberOfNodes ( const int  NumberOfNodes  )  [inherited]

Sets the number of nodes used in the mesh.

References MEDMEM::MESH::_connectivity, and MEDMEM::MESH::_numberOfNodes.

Referenced by MEDMEM::MESHING::setCoordinates().

void MEDMEM::MESHING::setCoordinates ( const int  SpaceDimension,
const int  NumberOfNodes,
const double *  Coordinates,
const string  System,
const MED_EN::medModeSwitch  Mode 
) [inherited]

Sets the whole coordinates array in a given system and interlacing mode. The system coordinates are :

  • "MED_CART"
  • "MED_CYL"
  • "MED_SPHER" The interlacing mode are :
  • MED_NO_INTERLACE : X1 X2 Y1 Y2 Z1 Z2
  • MED_FULL_INTERLACE : X1 Y1 Z1 X2 Y2 Z2

Example :

MESHING myMeshing ;
const int SpaceDimension=2;
const int NumberOfNodes=6;
int * Coordinates = new int[SpaceDimension*NumberOfNodes] ;
string System="CARTESIAN";
medModeSwitch Mode = MED_FULL_INTERLACE ;
myMeshing.setCoordinates(SpaceDimension,NumberOfNodes,Coordinates,System,Mode);

References MEDMEM::MESH::_connectivity, MEDMEM::MESH::_coordinate, MEDMEM::MESHING::setNumberOfNodes(), and MEDMEM::MESHING::setSpaceDimension().

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

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