Version: 6.5.0
Public Member Functions | Static Public Member Functions | List of all members
ParaMEDMEM::MEDCouplingUMeshDesc Class Reference
Inheritance diagram for ParaMEDMEM::MEDCouplingUMeshDesc:
Inheritance graph
[legend]
Collaboration diagram for ParaMEDMEM::MEDCouplingUMeshDesc:
Collaboration graph
[legend]

Public Member Functions

MEDCouplingMeshdeepCpy () const
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)
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 setMeshDimension (unsigned meshDim)
int getNumberOfCells () const
int getNumberOfFaces () const
int getCellMeshLength () const
int getFaceMeshLength () const
int getMeshDimension () 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
std::string simpleRepr () const
std::string advancedRepr () const
MEDCouplingMeshType getType () const
void setConnectivity (DataArrayInt *descConn, DataArrayInt *descConnIndex, DataArrayInt *nodalFaceConn, DataArrayInt *nodalFaceConnIndx)
std::vector< int > getDistributionOfTypes () 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)
void getTinySerializationInformation (std::vector< double > &tinyInfoD, std::vector< int > &tinyInfo, std::vector< std::string > &littleStrings) const
bool isEmptyMesh (const std::vector< int > &tinyInfo) 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)
void getCellsInBoundingBox (const double *bbox, double eps, std::vector< int > &elems) const
void getCellsInBoundingBox (const INTERP_KERNEL::DirectedBoundingBox &bbox, double eps, std::vector< int > &elems)
DataArrayIntmergeNodes (double precision, bool &areNodesMerged, int &newNbOfNodes)
DataArrayIntmergeNodes2 (double precision, bool &areNodesMerged, int &newNbOfNodes)
void tryToShareSameCoordsPermute (const MEDCouplingPointSet &other, double epsilon) throw (INTERP_KERNEL::Exception)
MEDCouplingPointSetbuildPartOfMySelf (const int *start, const int *end, bool keepCoords) const
MEDCouplingPointSetbuildPartOfMySelfNode (const int *start, const int *end, bool fullyIn) const
MEDCouplingPointSetbuildFacePartOfMySelfNode (const int *start, const int *end, bool fullyIn) const
DataArrayIntsimplexize (int policy) throw (INTERP_KERNEL::Exception)
void findBoundaryNodes (std::vector< int > &nodes) const
MEDCouplingPointSetbuildBoundaryMesh (bool keepCoords) const
MEDCouplingUMeshbuildUnstructured () const throw (INTERP_KERNEL::Exception)
void renumberCells (const int *old2NewBg, bool check) throw (INTERP_KERNEL::Exception)
void renumberNodes (const int *newNodeNumbers, int newNbOfNodes)
MEDCouplingFieldDoublegetMeasureField (bool isAbs) const
MEDCouplingFieldDoublegetMeasureFieldOnNode (bool isAbs) const
int getCellContainingPoint (const double *pos, double eps) const
MEDCouplingFieldDoublebuildOrthogonalField () const
DataArrayIntzipCoordsTraducer ()
MEDCouplingMeshmergeMyselfWith (const MEDCouplingMesh *other) const
DataArrayDoublegetBarycenterAndOwner () const
- Public Member Functions inherited from ParaMEDMEM::MEDCouplingPointSet
void updateTime () const
int getNumberOfNodes () const
int getSpaceDimension () const
void setCoords (const DataArrayDouble *coords)
const DataArrayDoublegetCoords () const
DataArrayDoublegetCoords ()
DataArrayDoublegetCoordinatesAndOwner () 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
bool areCoordsEqual (const MEDCouplingPointSet &other, double prec) const
bool areCoordsEqualWithoutConsideringStr (const MEDCouplingPointSet &other, double prec) const
void getCoordinatesOfNode (int nodeId, std::vector< double > &coo) const throw (INTERP_KERNEL::Exception)
DataArrayIntbuildPermArrayForMergeNode (double precision, int limitNodeId, bool &areNodesMerged, int &newNbOfNodes) const
std::vector< int > getNodeIdsNearPoint (const double *pos, double eps) const throw (INTERP_KERNEL::Exception)
void getNodeIdsNearPoints (const double *pos, int nbOfNodes, double eps, std::vector< int > &c, std::vector< int > &cI) const throw (INTERP_KERNEL::Exception)
void findCommonNodes (double prec, int limitNodeId, DataArrayInt *&comm, DataArrayInt *&commIndex) const
DataArrayIntbuildNewNumberingFromCommonNodesFormat (const DataArrayInt *comm, const DataArrayInt *commIndex, int &newNbOfNodes) const
void getBoundingBox (double *bbox) const throw (INTERP_KERNEL::Exception)
void zipCoords ()
double getCaracteristicDimension () const
void rotate (const double *center, const double *vector, double angle)
void translate (const double *vector)
void scale (const double *point, double factor)
void changeSpaceDimension (int newSpaceDim, double dftVal=0.) throw (INTERP_KERNEL::Exception)
void tryToShareSameCoords (const MEDCouplingPointSet &other, double epsilon) throw (INTERP_KERNEL::Exception)
void findNodesOnPlane (const double *pt, const double *vec, double eps, std::vector< int > &nodes) const throw (INTERP_KERNEL::Exception)
void findNodesOnLine (const double *pt, const double *vec, double eps, std::vector< int > &nodes) const throw (INTERP_KERNEL::Exception)
MEDCouplingMeshbuildPart (const int *start, const int *end) const
MEDCouplingMeshbuildPartAndReduceNodes (const int *start, const int *end, DataArrayInt *&arr) const
virtual void renumberNodes2 (const int *newNodeNumbers, int newNbOfNodes)
- Public Member Functions inherited from ParaMEDMEM::MEDCouplingMesh
void setName (const char *name)
const char * getName () const
void setDescription (const char *descr)
const char * getDescription () const
double getTime (int &iteration, int &order) const
void setTime (double val, int iteration, int order)
void setTimeUnit (const char *unit)
const char * getTimeUnit () const
bool isStructured () const
virtual void copyTinyInfoFrom (const MEDCouplingMesh *other) throw (INTERP_KERNEL::Exception)
virtual void checkFastEquivalWith (const MEDCouplingMesh *other, double prec) const throw (INTERP_KERNEL::Exception)
void checkGeoEquivalWith (const MEDCouplingMesh *other, int levOfCheck, double prec, DataArrayInt *&cellCor, DataArrayInt *&nodeCor) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetCellIdsFullyIncludedInNodeIds (const int *partBg, const int *partEnd) const
virtual void getCellsContainingPoint (const double *pos, double eps, std::vector< int > &elts) const
virtual void getCellsContainingPoints (const double *pos, int nbOfPoints, double eps, std::vector< int > &elts, std::vector< int > &eltsIndex) const
virtual MEDCouplingFieldDoublefillFromAnalytic (TypeOfField t, int nbOfComp, FunctionToEvaluate func) const
virtual MEDCouplingFieldDoublefillFromAnalytic (TypeOfField t, int nbOfComp, const char *func) const
virtual MEDCouplingFieldDoublefillFromAnalytic2 (TypeOfField t, int nbOfComp, const char *func) const
virtual MEDCouplingFieldDoublefillFromAnalytic3 (TypeOfField t, int nbOfComp, const std::vector< std::string > &varsOrder, const char *func) const
virtual bool areCompatibleForMerge (const MEDCouplingMesh *other) const
void writeVTK (const char *fileName) const throw (INTERP_KERNEL::Exception)
virtual void writeVTKLL (std::ostream &ofs, const std::string &cellData, const std::string &pointData) const =0 throw (INTERP_KERNEL::Exception)
- Public Member Functions inherited from ParaMEDMEM::RefCountObject
bool decrRef () const
void incrRef () const
- Public Member Functions inherited from ParaMEDMEM::TimeLabel
TimeLabeloperator= (const TimeLabel &other)
void declareAsNew () const
unsigned int getTimeOfThis () const

Static Public Member Functions

static MEDCouplingUMeshDescNew ()
static MEDCouplingUMeshDescNew (const char *meshName, int meshDim)
- Static Public Member Functions inherited from ParaMEDMEM::MEDCouplingPointSet
static DataArrayDoubleMergeNodesArray (const MEDCouplingPointSet *m1, const MEDCouplingPointSet *m2) throw (INTERP_KERNEL::Exception)
static DataArrayDoubleMergeNodesArray (const std::vector< const MEDCouplingPointSet * > &ms) throw (INTERP_KERNEL::Exception)
static MEDCouplingPointSetBuildInstanceFromMeshType (MEDCouplingMeshType type)
static void Rotate2DAlg (const double *center, double angle, int nbNodes, double *coords)
static void Rotate3DAlg (const double *center, const double *vect, double angle, int nbNodes, double *coords)
- Static Public Member Functions inherited from ParaMEDMEM::MEDCouplingMesh
static MEDCouplingMeshMergeMeshes (const MEDCouplingMesh *mesh1, const MEDCouplingMesh *mesh2) throw (INTERP_KERNEL::Exception)
static MEDCouplingMeshMergeMeshes (std::vector< const MEDCouplingMesh * > &meshes) throw (INTERP_KERNEL::Exception)

Additional Inherited Members

- Protected Member Functions inherited from ParaMEDMEM::MEDCouplingPointSet
 MEDCouplingPointSet ()
 MEDCouplingPointSet (const MEDCouplingPointSet &other, bool deepCopy)
 ~MEDCouplingPointSet ()
virtual void checkFullyDefined () const =0 throw (INTERP_KERNEL::Exception)
void rotate2D (const double *center, double angle)
void rotate3D (const double *center, const double *vect, double angle)
void project2DCellOnXY (const int *startConn, const int *endConn, std::vector< double > &res) const
template<int SPACEDIM>
void findNodeIdsNearPointAlg (std::vector< double > &bbox, const double *pos, int nbNodes, double eps, std::vector< int > &c, std::vector< int > &cI) const
- Static Protected Member Functions inherited from ParaMEDMEM::MEDCouplingPointSet
static bool intersectsBoundingBox (const double *bb1, const double *bb2, int dim, double eps)
static bool intersectsBoundingBox (const INTERP_KERNEL::DirectedBoundingBox &bb1, const double *bb2, int dim, double eps)
static bool isButterfly2DCell (const std::vector< double > &res, bool isQuad, double eps)
- Protected Attributes inherited from ParaMEDMEM::MEDCouplingPointSet
DataArrayDouble_coords

Member Function Documentation

MEDCouplingUMeshDesc * MEDCouplingUMeshDesc::New ( )
static
MEDCouplingUMeshDesc * MEDCouplingUMeshDesc::New ( const char *  meshName,
int  meshDim 
)
static
MEDCouplingMesh * MEDCouplingUMeshDesc::deepCpy ( ) const
virtual
void MEDCouplingUMeshDesc::checkCoherency ( ) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingUMeshDesc::checkCoherency1 ( double  eps = 1e-12) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingUMeshDesc::checkCoherency2 ( double  eps = 1e-12) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingUMeshDesc::checkDeepEquivalWith ( const MEDCouplingMesh other,
int  cellCompPol,
double  prec,
DataArrayInt *&  cellCor,
DataArrayInt *&  nodeCor 
) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingUMeshDesc::checkDeepEquivalOnSameNodesWith ( const MEDCouplingMesh other,
int  cellCompPol,
double  prec,
DataArrayInt *&  cellCor 
) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingUMeshDesc::setMeshDimension ( unsigned  meshDim)
int MEDCouplingUMeshDesc::getNumberOfCells ( ) const
virtual
int MEDCouplingUMeshDesc::getNumberOfFaces ( ) const
int MEDCouplingUMeshDesc::getCellMeshLength ( ) const
int MEDCouplingUMeshDesc::getFaceMeshLength ( ) const
int ParaMEDMEM::MEDCouplingUMeshDesc::getMeshDimension ( ) const
virtual
INTERP_KERNEL::NormalizedCellType MEDCouplingUMeshDesc::getTypeOfCell ( int  cellId) const
virtual
std::set< INTERP_KERNEL::NormalizedCellType > MEDCouplingUMeshDesc::getAllGeoTypes ( ) const
virtual
int MEDCouplingUMeshDesc::getNumberOfCellsWithType ( INTERP_KERNEL::NormalizedCellType  type) const
virtual
void MEDCouplingUMeshDesc::getNodeIdsOfCell ( int  cellId,
std::vector< int > &  conn 
) const
virtual
std::string MEDCouplingUMeshDesc::simpleRepr ( ) const
virtual
std::string MEDCouplingUMeshDesc::advancedRepr ( ) const
virtual
MEDCouplingMeshType ParaMEDMEM::MEDCouplingUMeshDesc::getType ( ) const
virtual
void MEDCouplingUMeshDesc::setConnectivity ( DataArrayInt descConn,
DataArrayInt descConnIndex,
DataArrayInt nodalFaceConn,
DataArrayInt nodalFaceConnIndx 
)
std::vector< int > MEDCouplingUMeshDesc::getDistributionOfTypes ( ) const throw (INTERP_KERNEL::Exception)
virtual
DataArrayInt * MEDCouplingUMeshDesc::checkTypeConsistencyAndContig ( const std::vector< int > &  code,
const std::vector< const DataArrayInt * > &  idsPerType 
) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingUMeshDesc::splitProfilePerType ( const DataArrayInt profile,
std::vector< int > &  code,
std::vector< DataArrayInt * > &  idsInPflPerType,
std::vector< DataArrayInt * > &  idsPerType 
) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingUMeshDesc::getTinySerializationInformation ( std::vector< double > &  tinyInfoD,
std::vector< int > &  tinyInfo,
std::vector< std::string > &  littleStrings 
) const
virtual

size of returned tinyInfo must be always the same.

First step of serialization process. Used by ParaMEDMEM and MEDCouplingCorba to transfert data between process.

Reimplemented from ParaMEDMEM::MEDCouplingPointSet.

References getCellMeshLength(), getFaceMeshLength(), getMeshDimension(), getNumberOfCells(), getNumberOfFaces(), and ParaMEDMEM::MEDCouplingPointSet::getNumberOfNodes().

bool MEDCouplingUMeshDesc::isEmptyMesh ( const std::vector< int > &  tinyInfo) const
virtual
void MEDCouplingUMeshDesc::resizeForUnserialization ( const std::vector< int > &  tinyInfo,
DataArrayInt a1,
DataArrayDouble a2,
std::vector< std::string > &  littleStrings 
) const
virtual

Second step of serialization process.

Parameters
tinyInfomust be equal to the result given by getTinySerializationInformation method.

Reimplemented from ParaMEDMEM::MEDCouplingPointSet.

References ParaMEDMEM::DataArrayInt::alloc().

void MEDCouplingUMeshDesc::serialize ( DataArrayInt *&  a1,
DataArrayDouble *&  a2 
) const
virtual
void MEDCouplingUMeshDesc::unserialization ( const std::vector< double > &  tinyInfoD,
const std::vector< int > &  tinyInfo,
const DataArrayInt a1,
DataArrayDouble a2,
const std::vector< std::string > &  littleStrings 
)
virtual

Second and final unserialization process.

Parameters
tinyInfomust be equal to the result given by getTinySerializationInformation method.

Reimplemented from ParaMEDMEM::MEDCouplingPointSet.

References ParaMEDMEM::DataArrayInt::alloc(), ParaMEDMEM::RefCountObject::decrRef(), ParaMEDMEM::DataArrayInt::getConstPointer(), ParaMEDMEM::DataArrayInt::getPointer(), New(), setConnectivity(), and setMeshDimension().

void MEDCouplingUMeshDesc::getCellsInBoundingBox ( const double *  bbox,
double  eps,
std::vector< int > &  elems 
) const
virtual
void MEDCouplingUMeshDesc::getCellsInBoundingBox ( const INTERP_KERNEL::DirectedBoundingBox &  bbox,
double  eps,
std::vector< int > &  elems 
)
virtual
DataArrayInt * MEDCouplingUMeshDesc::mergeNodes ( double  precision,
bool &  areNodesMerged,
int &  newNbOfNodes 
)
virtual
DataArrayInt * MEDCouplingUMeshDesc::mergeNodes2 ( double  precision,
bool &  areNodesMerged,
int &  newNbOfNodes 
)
virtual
void MEDCouplingUMeshDesc::tryToShareSameCoordsPermute ( const MEDCouplingPointSet other,
double  epsilon 
) throw (INTERP_KERNEL::Exception)
virtual
MEDCouplingPointSet * MEDCouplingUMeshDesc::buildPartOfMySelf ( const int *  start,
const int *  end,
bool  keepCoords 
) const
virtual
MEDCouplingPointSet * MEDCouplingUMeshDesc::buildPartOfMySelfNode ( const int *  start,
const int *  end,
bool  fullyIn 
) const
virtual
MEDCouplingPointSet * MEDCouplingUMeshDesc::buildFacePartOfMySelfNode ( const int *  start,
const int *  end,
bool  fullyIn 
) const
virtual
DataArrayInt * MEDCouplingUMeshDesc::simplexize ( int  policy) throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingUMeshDesc::findBoundaryNodes ( std::vector< int > &  nodes) const
virtual
MEDCouplingPointSet * MEDCouplingUMeshDesc::buildBoundaryMesh ( bool  keepCoords) const
virtual
MEDCouplingUMesh * MEDCouplingUMeshDesc::buildUnstructured ( ) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingUMeshDesc::renumberCells ( const int *  old2NewBg,
bool  check 
) throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingUMeshDesc::renumberNodes ( const int *  newNodeNumbers,
int  newNbOfNodes 
)
virtual

Reimplemented from ParaMEDMEM::MEDCouplingPointSet.

MEDCouplingFieldDouble * MEDCouplingUMeshDesc::getMeasureField ( bool  isAbs) const
virtual
MEDCouplingFieldDouble * MEDCouplingUMeshDesc::getMeasureFieldOnNode ( bool  isAbs) const
virtual
int MEDCouplingUMeshDesc::getCellContainingPoint ( const double *  pos,
double  eps 
) const
virtual
MEDCouplingFieldDouble * MEDCouplingUMeshDesc::buildOrthogonalField ( ) const
virtual
DataArrayInt * MEDCouplingUMeshDesc::zipCoordsTraducer ( )
virtual
MEDCouplingMesh * MEDCouplingUMeshDesc::mergeMyselfWith ( const MEDCouplingMesh other) const
virtual
DataArrayDouble * MEDCouplingUMeshDesc::getBarycenterAndOwner ( ) const
virtual
Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS