Version: 5.1.6

ParaMEDMEM.MEDCouplingCMesh Class Reference

#include <MEDCouplingCMesh.hxx>

Inheritance diagram for ParaMEDMEM.MEDCouplingCMesh:
Inheritance graph

Public Member Functions

MEDCouplingMeshdeepCpy () const
MEDCouplingCMeshclone (bool recDeepCpy) const
void updateTime () const
MEDCouplingMeshType getType () const
void copyTinyStringsFrom (const MEDCouplingMesh *other) throw (INTERP_KERNEL::Exception)
bool isEqual (const MEDCouplingMesh *other, double prec) const
bool isEqualWithoutConsideringStr (const MEDCouplingMesh *other, double prec) const
void checkDeepEquivalWith (const MEDCouplingMesh *other, int cellCompPol, double prec, DataArrayInt *&cellCor, DataArrayInt *&nodeCor) const throw (INTERP_KERNEL::Exception)
void checkDeepEquivalOnSameNodesWith (const MEDCouplingMesh *other, int cellCompPol, double prec, DataArrayInt *&cellCor) const throw (INTERP_KERNEL::Exception)
void checkCoherency () const throw (INTERP_KERNEL::Exception)
void checkCoherency1 (double eps=1e-12) const throw (INTERP_KERNEL::Exception)
void checkCoherency2 (double eps=1e-12) const throw (INTERP_KERNEL::Exception)
int getNumberOfCells () const
int getNumberOfNodes () const
int getSpaceDimension () const
int getMeshDimension () const
int getCellIdFromPos (int i, int j, int k) const
int getNodeIdFromPos (int i, int j, int k) const
INTERP_KERNEL::NormalizedCellType getTypeOfCell (int cellId) const
std::set
< INTERP_KERNEL::NormalizedCellType
getAllGeoTypes () const
int getNumberOfCellsWithType (INTERP_KERNEL::NormalizedCellType type) const
void getNodeIdsOfCell (int cellId, std::vector< int > &conn) const
void getCoordinatesOfNode (int nodeId, std::vector< double > &coo) const
std::string simpleRepr () const
std::string advancedRepr () const
const DataArrayDoublegetCoordsAt (int i) const throw (INTERP_KERNEL::Exception)
DataArrayDoublegetCoordsAt (int i) throw (INTERP_KERNEL::Exception)
void setCoordsAt (int i, const DataArrayDouble *arr) throw (INTERP_KERNEL::Exception)
void setCoords (const DataArrayDouble *coordsX, const DataArrayDouble *coordsY=0, const DataArrayDouble *coordsZ=0)
std::vector< intgetDistributionOfTypes () const throw (INTERP_KERNEL::Exception)
DataArrayIntcheckTypeConsistencyAndContig (const std::vector< int > &code, const std::vector< const DataArrayInt * > &idsPerType) const throw (INTERP_KERNEL::Exception)
void splitProfilePerType (const DataArrayInt *profile, std::vector< int > &code, std::vector< DataArrayInt * > &idsInPflPerType, std::vector< DataArrayInt * > &idsPerType) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMeshbuildUnstructured () const throw (INTERP_KERNEL::Exception)
MEDCouplingMeshbuildPart (const int *start, const int *end) const
MEDCouplingMeshbuildPartAndReduceNodes (const int *start, const int *end, DataArrayInt *&arr) const
DataArrayIntsimplexize (int policy) throw (INTERP_KERNEL::Exception)
void getBoundingBox (double *bbox) const
MEDCouplingFieldDoublegetMeasureField (bool isAbs) const
MEDCouplingFieldDoublegetMeasureFieldOnNode (bool isAbs) const
MEDCouplingFieldDoublebuildOrthogonalField () const
int getCellContainingPoint (const double *pos, double eps) const
void rotate (const double *center, const double *vector, double angle)
void translate (const double *vector)
void scale (const double *point, double factor)
MEDCouplingMeshmergeMyselfWith (const MEDCouplingMesh *other) const
DataArrayDoublegetCoordinatesAndOwner () const
DataArrayDoublegetBarycenterAndOwner () const
void renumberCells (const int *old2NewBg, bool check) throw (INTERP_KERNEL::Exception)
void fill1DUnstructuredMesh (MEDCouplingUMesh *m) const
void fill2DUnstructuredMesh (MEDCouplingUMesh *m) const
void fill3DUnstructuredMesh (MEDCouplingUMesh *m) const
void getSplitCellValues (int *res) const
void getSplitNodeValues (int *res) const
void getTinySerializationInformation (std::vector< double > &tinyInfoD, std::vector< int > &tinyInfo, std::vector< std::string > &littleStrings) const
void resizeForUnserialization (const std::vector< int > &tinyInfo, DataArrayInt *a1, DataArrayDouble *a2, std::vector< std::string > &littleStrings) const
void serialize (DataArrayInt *&a1, DataArrayDouble *&a2) const
void unserialization (const std::vector< double > &tinyInfoD, const std::vector< int > &tinyInfo, const DataArrayInt *a1, DataArrayDouble *a2, const std::vector< std::string > &littleStrings)
 MEDCouplingCMesh ()
 MEDCouplingCMesh (const MEDCouplingCMesh &other, bool deepCpy)
 ~MEDCouplingCMesh ()

Static Public Member Functions

static MEDCouplingCMeshNew ()
static void GetPosFromId (int nodeId, int spaceDim, const int *split, int *res)

Data Fields

DataArrayDouble_x_array
DataArrayDouble_y_array
DataArrayDouble_z_array

Constructor & Destructor Documentation

MEDCouplingCMesh::MEDCouplingCMesh (  ) 
MEDCouplingCMesh::MEDCouplingCMesh ( const MEDCouplingCMesh other,
bool  deepCpy 
)
MEDCouplingCMesh::~MEDCouplingCMesh (  ) 

Member Function Documentation

MEDCouplingCMesh * MEDCouplingCMesh::New (  )  [static]
MEDCouplingMesh * MEDCouplingCMesh::deepCpy (  )  const [virtual]
MEDCouplingCMesh * MEDCouplingCMesh::clone ( bool  recDeepCpy  )  const
void MEDCouplingCMesh::updateTime (  )  const [virtual]
MEDCouplingMeshType ParaMEDMEM.MEDCouplingCMesh.getType (  )  const [virtual]
void MEDCouplingCMesh::copyTinyStringsFrom ( const MEDCouplingMesh other  )  throw (INTERP_KERNEL::Exception)

This method copyies all tiny strings from other (name and components name).

Exceptions:
if other and this have not same mesh type.

References ParaMEDMEM.MEDCouplingCMesh._x_array, ParaMEDMEM.MEDCouplingCMesh._y_array, ParaMEDMEM.MEDCouplingCMesh._z_array, and ParaMEDMEM.MEDCouplingMesh.copyTinyStringsFrom().

bool MEDCouplingCMesh::isEqual ( const MEDCouplingMesh other,
double  prec 
) const
bool MEDCouplingCMesh::isEqualWithoutConsideringStr ( const MEDCouplingMesh other,
double  prec 
) const
void MEDCouplingCMesh::checkDeepEquivalWith ( const MEDCouplingMesh other,
int  cellCompPol,
double  prec,
DataArrayInt *&  cellCor,
DataArrayInt *&  nodeCor 
) const throw (INTERP_KERNEL::Exception)
void MEDCouplingCMesh::checkDeepEquivalOnSameNodesWith ( const MEDCouplingMesh other,
int  cellCompPol,
double  prec,
DataArrayInt *&  cellCor 
) const throw (INTERP_KERNEL::Exception)
void MEDCouplingCMesh::checkCoherency (  )  const throw (INTERP_KERNEL::Exception) [virtual]
void MEDCouplingCMesh::checkCoherency1 ( double  eps = 1e-12  )  const throw (INTERP_KERNEL::Exception) [virtual]
void MEDCouplingCMesh::checkCoherency2 ( double  eps = 1e-12  )  const throw (INTERP_KERNEL::Exception) [virtual]
int MEDCouplingCMesh::getNumberOfCells (  )  const [virtual]
int MEDCouplingCMesh::getNumberOfNodes (  )  const [virtual]
int MEDCouplingCMesh::getSpaceDimension (  )  const [virtual]
int MEDCouplingCMesh::getMeshDimension (  )  const [virtual]
int MEDCouplingCMesh::getCellIdFromPos ( int  i,
int  j,
int  k 
) const
int MEDCouplingCMesh::getNodeIdFromPos ( int  i,
int  j,
int  k 
) const
void MEDCouplingCMesh::GetPosFromId ( int  nodeId,
int  spaceDim,
const int split,
int res 
) [static]
INTERP_KERNEL::NormalizedCellType MEDCouplingCMesh::getTypeOfCell ( int  cellId  )  const [virtual]
std::set< INTERP_KERNEL::NormalizedCellType > MEDCouplingCMesh::getAllGeoTypes (  )  const [virtual]
int MEDCouplingCMesh::getNumberOfCellsWithType ( INTERP_KERNEL::NormalizedCellType  type  )  const [virtual]
void MEDCouplingCMesh::getNodeIdsOfCell ( int  cellId,
std::vector< int > &  conn 
) const [virtual]
void MEDCouplingCMesh::getCoordinatesOfNode ( int  nodeId,
std::vector< double > &  coo 
) const [virtual]
std::string MEDCouplingCMesh::simpleRepr (  )  const [virtual]
std::string MEDCouplingCMesh::advancedRepr (  )  const [virtual]
const DataArrayDouble * MEDCouplingCMesh::getCoordsAt ( int  i  )  const throw (INTERP_KERNEL::Exception)
DataArrayDouble * MEDCouplingCMesh::getCoordsAt ( int  i  )  throw (INTERP_KERNEL::Exception)
void MEDCouplingCMesh::setCoordsAt ( int  i,
const DataArrayDouble arr 
) throw (INTERP_KERNEL::Exception)
void MEDCouplingCMesh::setCoords ( const DataArrayDouble coordsX,
const DataArrayDouble coordsY = 0,
const DataArrayDouble coordsZ = 0 
)
std::vector< int > MEDCouplingCMesh::getDistributionOfTypes (  )  const throw (INTERP_KERNEL::Exception) [virtual]
DataArrayInt * MEDCouplingCMesh::checkTypeConsistencyAndContig ( const std::vector< int > &  code,
const std::vector< const DataArrayInt * > &  idsPerType 
) const throw (INTERP_KERNEL::Exception) [virtual]
void MEDCouplingCMesh::splitProfilePerType ( const DataArrayInt profile,
std::vector< int > &  code,
std::vector< DataArrayInt * > &  idsInPflPerType,
std::vector< DataArrayInt * > &  idsPerType 
) const throw (INTERP_KERNEL::Exception) [virtual]
MEDCouplingUMesh * MEDCouplingCMesh::buildUnstructured (  )  const throw (INTERP_KERNEL::Exception) [virtual]
MEDCouplingMesh * MEDCouplingCMesh::buildPart ( const int start,
const int end 
) const [virtual]
MEDCouplingMesh * MEDCouplingCMesh::buildPartAndReduceNodes ( const int start,
const int end,
DataArrayInt *&  arr 
) const [virtual]
DataArrayInt * MEDCouplingCMesh::simplexize ( int  policy  )  throw (INTERP_KERNEL::Exception) [virtual]
void MEDCouplingCMesh::getBoundingBox ( double bbox  )  const [virtual]
MEDCouplingFieldDouble * MEDCouplingCMesh::getMeasureField ( bool  isAbs  )  const [virtual]
MEDCouplingFieldDouble * MEDCouplingCMesh::getMeasureFieldOnNode ( bool  isAbs  )  const [virtual]
MEDCouplingFieldDouble * MEDCouplingCMesh::buildOrthogonalField (  )  const [virtual]
int MEDCouplingCMesh::getCellContainingPoint ( const double pos,
double  eps 
) const [virtual]
void MEDCouplingCMesh::rotate ( const double center,
const double vector,
double  angle 
) [virtual]
void MEDCouplingCMesh::translate ( const double vector  )  [virtual]
void MEDCouplingCMesh::scale ( const double point,
double  factor 
) [virtual]
MEDCouplingMesh * MEDCouplingCMesh::mergeMyselfWith ( const MEDCouplingMesh other  )  const
DataArrayDouble * MEDCouplingCMesh::getCoordinatesAndOwner (  )  const [virtual]
DataArrayDouble * MEDCouplingCMesh::getBarycenterAndOwner (  )  const [virtual]
void MEDCouplingCMesh::renumberCells ( const int old2NewBg,
bool  check 
) throw (INTERP_KERNEL::Exception) [virtual]
void MEDCouplingCMesh::fill1DUnstructuredMesh ( MEDCouplingUMesh m  )  const
void MEDCouplingCMesh::fill2DUnstructuredMesh ( MEDCouplingUMesh m  )  const
void MEDCouplingCMesh::fill3DUnstructuredMesh ( MEDCouplingUMesh m  )  const
void MEDCouplingCMesh::getSplitCellValues ( int res  )  const
void MEDCouplingCMesh::getSplitNodeValues ( int res  )  const
void MEDCouplingCMesh::getTinySerializationInformation ( std::vector< double > &  tinyInfoD,
std::vector< int > &  tinyInfo,
std::vector< std::string > &  littleStrings 
) const [virtual]
void MEDCouplingCMesh::resizeForUnserialization ( const std::vector< int > &  tinyInfo,
DataArrayInt a1,
DataArrayDouble a2,
std::vector< std::string > &  littleStrings 
) const [virtual]
void MEDCouplingCMesh::serialize ( DataArrayInt *&  a1,
DataArrayDouble *&  a2 
) const [virtual]
void MEDCouplingCMesh::unserialization ( const std::vector< double > &  tinyInfoD,
const std::vector< int > &  tinyInfo,
const DataArrayInt a1,
DataArrayDouble a2,
const std::vector< std::string > &  littleStrings 
) [virtual]

Field Documentation