Public Member Functions | |
std::string | advancedRepr () const |
void | allocateCells (int nbOfCells=0) |
MEDCouplingPointSet * | buildPartOfMySelfKeepCoords (const int *begin, const int *end) const |
MEDCouplingPointSet * | buildPartOfMySelfKeepCoordsSlice (int start, int end, int step) const |
MEDCoupling1SGTUMesh * | buildSetInstanceFromThis (int spaceDim) const |
MEDCouplingUMesh * | buildUnstructured () const |
void | checkConsistency (double eps=1e-12) const |
void | checkConsistencyLight () const |
void | checkConsistencyOfConnectivity () const |
void | checkFastEquivalWith (const MEDCouplingMesh *other, double prec) const |
void | checkFullyDefined () const |
MEDCoupling1SGTUMesh * | clone (bool recDeepCpy) const |
MEDCouplingFieldDouble * | computeDiameterField () const |
MEDCoupling1GTUMesh * | computeDualMesh () const |
DataArrayInt * | computeEffectiveNbOfNodesPerCell () const |
DataArrayInt * | computeFetchedNodeIds () const |
DataArrayDouble * | computeIsoBarycenterOfNodesPerCell () const |
DataArrayInt * | computeNbOfFacesPerCell () const |
DataArrayInt * | computeNbOfNodesPerCell () const |
void | computeNodeIdsAlg (std::vector< bool > &nodeIdsInUse) const |
MEDCoupling1SGTUMesh * | deepCopy () const |
MEDCoupling1SGTUMesh * | deepCopyConnectivityOnly () const |
MEDCoupling1SGTUMesh * | explodeEachHexa8To6Quad4 () const |
void | fillCellIdsToKeepFromNodeIds (const int *begin, const int *end, bool fullyIn, DataArrayInt *&cellIdsKeptArr) const |
DataArrayDouble * | getBoundingBoxForBBTree (double arcDetEps=1e-12) const |
std::vector< const BigMemoryObject * > | getDirectChildrenWithNull () const |
std::size_t | getHeapMemorySizeWithoutChildren () const |
DataArrayInt * | getNodalConnectivity () const |
DataArrayInt * | getNodeIdsInUse (int &nbrOfNodesInUse) const |
void | getNodeIdsOfCell (int cellId, std::vector< int > &conn) const |
int | getNumberOfCells () const |
int | getNumberOfNodesInCell (int cellId) const |
int | getNumberOfNodesPerCell () const |
void | getReverseNodalConnectivity (DataArrayInt *revNodal, DataArrayInt *revNodalIndx) const |
void | getTinySerializationInformation (std::vector< double > &tinyInfoD, std::vector< int > &tinyInfo, std::vector< std::string > &littleStrings) const |
MEDCouplingMeshType | getType () const |
void | insertNextCell (const int *nodalConnOfCellBg, const int *nodalConnOfCellEnd) |
bool | isEmptyMesh (const std::vector< int > &tinyInfo) const |
bool | isEqualIfNotWhy (const MEDCouplingMesh *other, double prec, std::string &reason) const |
bool | isEqualWithoutConsideringStr (const MEDCouplingMesh *other, double prec) const |
MEDCouplingMesh * | mergeMyselfWith (const MEDCouplingMesh *other) const |
MEDCouplingPointSet * | mergeMyselfWithOnSameCoords (const MEDCouplingPointSet *other) const |
void | renumberCells (const int *old2NewBg, bool check=true) |
void | renumberNodesInConn (const INTERP_KERNEL::HashMap< int, int > &newNodeNumbersO2N) |
void | renumberNodesInConn (const int *newNodeNumbersO2N) |
void | renumberNodesWithOffsetInConn (int offset) |
void | reprQuickOverview (std::ostream &stream) 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 | setNodalConnectivity (DataArrayInt *nodalConn) |
void | shallowCopyConnectivityFrom (const MEDCouplingPointSet *other) |
std::string | simpleRepr () const |
DataArrayInt * | simplexize (int policy) |
DataArrayInt * | sortHexa8EachOther () |
MEDCouplingCMesh * | structurizeMe (DataArrayInt *&cellPerm, DataArrayInt *&nodePerm, double eps=1e-12) 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 | updateTime () const |
Public Member Functions inherited from MEDCoupling::MEDCoupling1GTUMesh | |
MEDCouplingPointSet * | buildBoundaryMesh (bool keepCoords) const |
MEDCouplingPointSet * | buildFacePartOfMySelfNode (const int *start, const int *end, bool fullyIn) const |
MEDCouplingFieldDouble * | buildOrthogonalField () const |
DataArrayInt * | checkTypeConsistencyAndContig (const std::vector< int > &code, const std::vector< const DataArrayInt * > &idsPerType) const |
DataArrayDouble * | computeCellCenterOfMass () const |
DataArrayInt * | findBoundaryNodes () const |
void | findCommonCells (int compType, int startCellId, DataArrayInt *&commonCellsArr, DataArrayInt *&commonCellsIArr) const |
std::set < INTERP_KERNEL::NormalizedCellType > | getAllGeoTypes () const |
int | getCellContainingPoint (const double *pos, double eps) const |
const INTERP_KERNEL::CellModel & | getCellModel () const |
INTERP_KERNEL::NormalizedCellType | getCellModelEnum () const |
void | getCellsContainingPoint (const double *pos, double eps, std::vector< int > &elts) const |
DataArrayInt * | getCellsInBoundingBox (const double *bbox, double eps) const |
DataArrayInt * | getCellsInBoundingBox (const INTERP_KERNEL::DirectedBoundingBox &bbox, double eps) |
std::vector< int > | getDistributionOfTypes () const |
MEDCouplingFieldDouble * | getMeasureField (bool isAbs) const |
MEDCouplingFieldDouble * | getMeasureFieldOnNode (bool isAbs) const |
int | getMeshDimension () const |
int | getNodalConnectivityLength () const |
int | getNumberOfCellsWithType (INTERP_KERNEL::NormalizedCellType type) const |
INTERP_KERNEL::NormalizedCellType | getTypeOfCell (int cellId) const |
std::string | getVTKDataSetType () const |
std::string | getVTKFileExtension () const |
DataArrayInt * | giveCellsWithType (INTERP_KERNEL::NormalizedCellType type) const |
void | splitProfilePerType (const DataArrayInt *profile, std::vector< int > &code, std::vector< DataArrayInt * > &idsInPflPerType, std::vector< DataArrayInt * > &idsPerType) const |
void | writeVTKLL (std::ostream &ofs, const std::string &cellData, const std::string &pointData, DataArrayByte *byteData) const |
Public Member Functions inherited from MEDCoupling::MEDCouplingPointSet | |
virtual bool | areAllNodesFetched () const |
bool | areCellsFrom2MeshEqual (const MEDCouplingPointSet *other, int cellId, double prec) const |
bool | areCoordsEqual (const MEDCouplingPointSet &other, double prec) const |
bool | areCoordsEqualIfNotWhy (const MEDCouplingPointSet &other, double prec, std::string &reason) const |
bool | areCoordsEqualWithoutConsideringStr (const MEDCouplingPointSet &other, double prec) const |
DataArrayInt * | buildNewNumberingFromCommonNodesFormat (const DataArrayInt *comm, const DataArrayInt *commIndex, int &newNbOfNodes) const |
MEDCouplingMesh * | buildPart (const int *start, const int *end) const |
MEDCouplingMesh * | buildPartAndReduceNodes (const int *start, const int *end, DataArrayInt *&arr) const |
virtual MEDCouplingPointSet * | buildPartOfMySelf (const int *start, const int *end, bool keepCoords=true) const |
virtual MEDCouplingPointSet * | buildPartOfMySelfNode (const int *start, const int *end, bool fullyIn) const |
virtual MEDCouplingPointSet * | buildPartOfMySelfSlice (int start, int end, int step, bool keepCoords=true) const |
MEDCouplingMesh * | buildPartRange (int beginCellIds, int endCellIds, int stepCellIds) const |
MEDCouplingMesh * | buildPartRangeAndReduceNodes (int beginCellIds, int endCellIds, int stepCellIds, int &beginOut, int &endOut, int &stepOut, DataArrayInt *&arr) const |
DataArrayInt * | buildPermArrayForMergeNode (double precision, int limitNodeId, bool &areNodesMerged, int &newNbOfNodes) const |
void | changeSpaceDimension (int newSpaceDim, double dftVal=0.) |
void | checkDeepEquivalOnSameNodesWith (const MEDCouplingMesh *other, int cellCompPol, double prec, DataArrayInt *&cellCor) const |
void | checkDeepEquivalWith (const MEDCouplingMesh *other, int cellCompPol, double prec, DataArrayInt *&cellCor, DataArrayInt *&nodeCor) const |
void | checkFastEquivalWith (const MEDCouplingMesh *other, double prec) const |
void | copyTinyStringsFrom (const MEDCouplingMesh *other) |
void | duplicateNodesInCoords (const int *nodeIdsToDuplicateBg, const int *nodeIdsToDuplicateEnd) |
void | findCommonNodes (double prec, int limitNodeId, DataArrayInt *&comm, DataArrayInt *&commIndex) const |
void | findNodesOnLine (const double *pt, const double *vec, double eps, std::vector< int > &nodes) const |
void | findNodesOnPlane (const double *pt, const double *vec, double eps, std::vector< int > &nodes) const |
void | getBoundingBox (double *bbox) const |
double | getCaracteristicDimension () const |
DataArrayInt * | getCellIdsFullyIncludedInNodeIds (const int *partBg, const int *partEnd) const |
DataArrayInt * | getCellIdsLyingOnNodes (const int *begin, const int *end, bool fullyIn) const |
DataArrayDouble * | getCoordinatesAndOwner () const |
void | getCoordinatesOfNode (int nodeId, std::vector< double > &coo) const |
const DataArrayDouble * | getCoords () const |
DataArrayDouble * | getCoords () |
const DataArrayDouble * | getDirectAccessOfCoordsArrIfInStructure () const |
std::vector< const BigMemoryObject * > | getDirectChildrenWithNull () const |
std::size_t | getHeapMemorySizeWithoutChildren () const |
DataArrayInt * | getNodeIdsNearPoint (const double *pos, double eps) const |
void | getNodeIdsNearPoints (const double *pos, int nbOfPoints, double eps, DataArrayInt *&c, DataArrayInt *&cI) const |
int | getNumberOfNodes () const |
int | getSpaceDimension () const |
void | getTinySerializationInformation (std::vector< double > &tinyInfoD, std::vector< int > &tinyInfo, std::vector< std::string > &littleStrings) const |
bool | isEqualIfNotWhy (const MEDCouplingMesh *other, double prec, std::string &reason) const |
bool | isEqualWithoutConsideringStr (const MEDCouplingMesh *other, double prec) const |
virtual DataArrayInt * | mergeNodes (double precision, bool &areNodesMerged, int &newNbOfNodes) |
virtual DataArrayInt * | mergeNodesCenter (double precision, bool &areNodesMerged, int &newNbOfNodes) |
void | recenterForMaxPrecision (double eps) |
virtual void | renumberNodes (const int *newNodeNumbers, int newNbOfNodes) |
virtual void | renumberNodesCenter (const int *newNodeNumbers, int newNbOfNodes) |
void | resizeForUnserialization (const std::vector< int > &tinyInfo, DataArrayInt *a1, DataArrayDouble *a2, std::vector< std::string > &littleStrings) const |
void | rotate (const double *center, const double *vector, double angle) |
void | scale (const double *point, double factor) |
void | serialize (DataArrayInt *&a1, DataArrayDouble *&a2) const |
void | setCoords (const DataArrayDouble *coords) |
void | translate (const double *vector) |
void | tryToShareSameCoords (const MEDCouplingPointSet &other, double epsilon) |
virtual void | tryToShareSameCoordsPermute (const MEDCouplingPointSet &other, double epsilon) |
void | unserialization (const std::vector< double > &tinyInfoD, const std::vector< int > &tinyInfo, const DataArrayInt *a1, DataArrayDouble *a2, const std::vector< std::string > &littleStrings) |
void | updateTime () const |
virtual DataArrayInt * | zipConnectivityTraducer (int compType, int startCellId=0) |
void | zipCoords () |
virtual DataArrayInt * | zipCoordsTraducer () |
Public Member Functions inherited from MEDCoupling::MEDCouplingMesh | |
virtual bool | areCompatibleForMerge (const MEDCouplingMesh *other) const |
void | checkGeoEquivalWith (const MEDCouplingMesh *other, int levOfCheck, double prec, DataArrayInt *&cellCor, DataArrayInt *&nodeCor) const |
virtual void | copyTinyInfoFrom (const MEDCouplingMesh *other) |
virtual MEDCouplingFieldDouble * | fillFromAnalytic (TypeOfField t, int nbOfComp, FunctionToEvaluate func) const |
virtual MEDCouplingFieldDouble * | fillFromAnalytic (TypeOfField t, int nbOfComp, const std::string &func) const |
virtual MEDCouplingFieldDouble * | fillFromAnalyticCompo (TypeOfField t, int nbOfComp, const std::string &func) const |
virtual MEDCouplingFieldDouble * | fillFromAnalyticNamedCompo (TypeOfField t, int nbOfComp, const std::vector< std::string > &varsOrder, const std::string &func) const |
virtual void | getCellsContainingPoints (const double *pos, int nbOfPoints, double eps, MCAuto< DataArrayInt > &elts, MCAuto< DataArrayInt > &eltsIndex) const |
std::string | getDescription () const |
std::string | getName () const |
double | getTime (int &iteration, int &order) const |
std::string | getTimeUnit () const |
std::string | getVTKFileNameOf (const std::string &fileName) const |
virtual bool | isEqual (const MEDCouplingMesh *other, double prec) const |
bool | isStructured () const |
void | setDescription (const std::string &descr) |
void | setName (const std::string &name) |
void | setTime (double val, int iteration, int order) |
void | setTimeUnit (const std::string &unit) |
std::string | writeVTK (const std::string &fileName, bool isBinary=true) const |
Public Member Functions inherited from MEDCoupling::TimeLabel | |
void | declareAsNew () const |
std::size_t | getTimeOfThis () const |
TimeLabel & | operator= (const TimeLabel &other) |
Static Public Attributes | |
static const int | HEXA8_FACE_PAIRS [6] ={0,1,2,4,3,5} |
Additional Inherited Members | |
Protected Member Functions inherited from MEDCoupling::MEDCoupling1GTUMesh | |
MEDCoupling1GTUMesh (const std::string &name, const INTERP_KERNEL::CellModel &cm) | |
MEDCoupling1GTUMesh (const MEDCoupling1GTUMesh &other, bool recDeepCpy) | |
MEDCoupling1GTUMesh () | |
Static Protected Member Functions inherited from MEDCoupling::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 MEDCoupling::MEDCoupling1GTUMesh | |
const INTERP_KERNEL::CellModel * | _cm |
|
static |
References INTERP_KERNEL::NORM_ERROR.
|
static |
References MEDCoupling::DataArrayTemplate< T >::begin(), MEDCoupling::MEDCouplingUMesh::getAllGeoTypes(), MEDCoupling::MEDCouplingPointSet::getCoords(), MEDCoupling::MEDCouplingMesh::getDescription(), MEDCoupling::MEDCouplingMesh::getName(), MEDCoupling::MEDCouplingUMesh::getNodalConnectivity(), MEDCoupling::MEDCouplingUMesh::getNodalConnectivityIndex(), MEDCoupling::MEDCouplingUMesh::getNumberOfCells(), New(), and MEDCoupling::DataArrayInt::New().
|
static |
useless constructor only for CORBA -> not swigged
Referenced by MEDCoupling::MEDCouplingStructuredMesh::build1SGTSubLevelMesh(), MEDCoupling::MEDCouplingStructuredMesh::build1SGTUnstructured(), MEDCoupling::MEDCouplingPointSet::BuildInstanceFromMeshType(), MEDCoupling::MEDCouplingGaussLocalization::buildRefCell(), explodeEachHexa8To6Quad4(), MEDCoupling::MEDCoupling1GTUMesh::New(), New(), and MEDCoupling::MEDCouplingUMesh::tetrahedrize().
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
Referenced by deepCopy(), and deepCopyConnectivityOnly().
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References clone().
|
virtual |
This method behaves mostly like MEDCoupling1SGTUMesh::deepCopy method, except that only nodal connectivity arrays are deeply copied. The coordinates are shared between this and the returned instance.
Implements MEDCoupling::MEDCouplingPointSet.
References checkConsistencyLight(), clone(), MEDCoupling::MCAuto< T >::retn(), and setNodalConnectivity().
|
virtual |
This method should be called on high level classes as Field or Mesh to take into acount modifications done in aggregates objects.
Implements MEDCoupling::TimeLabel.
References MEDCoupling::MEDCouplingPointSet::updateTime(), and MEDCoupling::TimeLabel::updateTimeWith().
Referenced by renumberNodesInConn(), and renumberNodesWithOffsetInConn().
|
virtual |
Reimplemented from MEDCoupling::MEDCoupling1GTUMesh.
References MEDCoupling::MEDCoupling1GTUMesh::getHeapMemorySizeWithoutChildren().
|
virtual |
Implements MEDCoupling::BigMemoryObject.
References MEDCoupling::MEDCouplingPointSet::getDirectChildrenWithNull().
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References MEDCoupling::SINGLE_STATIC_GEO_TYPE_UNSTRUCTURED.
|
virtual |
Reimplemented from MEDCoupling::MEDCoupling1GTUMesh.
References MEDCoupling::MEDCoupling1GTUMesh::isEqualIfNotWhy().
|
virtual |
Reimplemented from MEDCoupling::MEDCoupling1GTUMesh.
References MEDCoupling::MEDCoupling1GTUMesh::isEqualWithoutConsideringStr().
|
virtual |
Checks if this and other meshes are geometrically equivalent with high probability, else an exception is thrown. The meshes are considered equivalent if (1) meshes contain the same number of nodes and the same number of elements of the same types (2) three cells of the two meshes (first, last and middle) are based on coincident nodes (with a specified precision).
[in] | other | - the mesh to compare with. |
[in] | prec | - the precision used to compare nodes of the two meshes. |
If | the two meshes do not match. |
Reimplemented from MEDCoupling::MEDCouplingMesh.
References MEDCoupling::MEDCouplingPointSet::checkFastEquivalWith(), MEDCoupling::DataArrayInt::getHashCode(), and MEDCoupling::DataArrayTemplate< T >::isAllocated().
|
virtual |
Reimplemented from MEDCoupling::MEDCoupling1GTUMesh.
References MEDCoupling::MEDCouplingPointSet::checkConsistencyLight(), and checkConsistencyOfConnectivity().
Referenced by checkConsistency(), deepCopyConnectivityOnly(), and structurizeMe().
|
virtual |
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References MEDCoupling::MEDCoupling1GTUMesh::getNodalConnectivityLength(), and getNumberOfNodesPerCell().
Referenced by advancedRepr(), MEDCoupling::MEDFileStructuredMesh::buildImplicitPartIfAny(), buildPartOfMySelfKeepCoords(), buildPartOfMySelfKeepCoordsSlice(), buildUnstructured(), computeDiameterField(), computeEffectiveNbOfNodesPerCell(), computeIsoBarycenterOfNodesPerCell(), computeNbOfFacesPerCell(), computeNbOfNodesPerCell(), explodeEachHexa8To6Quad4(), fillCellIdsToKeepFromNodeIds(), getBoundingBoxForBBTree(), getNodeIdsInUse(), getNodeIdsOfCell(), getReverseNodalConnectivity(), renumberCells(), renumberNodesInConn(), renumberNodesWithOffsetInConn(), reprQuickOverview(), simpleRepr(), and sortHexa8EachOther().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References getNumberOfCells(), and getNumberOfNodesPerCell().
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References MEDCoupling::MEDCoupling1GTUMesh::_cm, MEDCoupling::MEDCouplingPointSet::_coords, MEDCoupling::MEDCouplingMesh::getDescription(), MEDCoupling::DataArray::getInfoOnComponent(), MEDCoupling::MEDCoupling1GTUMesh::getMeshDimension(), MEDCoupling::MEDCouplingMesh::getName(), getNumberOfCells(), MEDCoupling::MEDCouplingPointSet::getNumberOfNodes(), MEDCoupling::MEDCouplingPointSet::getSpaceDimension(), MEDCoupling::MEDCouplingMesh::getTime(), and MEDCoupling::MEDCouplingMesh::getTimeUnit().
Referenced by advancedRepr().
|
virtual |
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References MEDCoupling::MEDCouplingPointSet::_coords, MEDCoupling::DataArrayTemplate< T >::alloc(), MEDCoupling::DataArrayTemplate< T >::begin(), getNumberOfCells(), MEDCoupling::MEDCouplingPointSet::getNumberOfNodes(), getNumberOfNodesPerCell(), MEDCoupling::DataArrayTemplate< T >::getPointer(), MEDCoupling::MEDCouplingPointSet::getSpaceDimension(), MEDCoupling::DataArrayDouble::New(), and MEDCoupling::MCAuto< T >::retn().
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References MEDCoupling::DataArrayTemplate< T >::alloc(), MEDCoupling::DataArrayTemplate< T >::begin(), MEDCoupling::C_DEALLOC, MEDCoupling::DataArrayInt::checkAndPreparePermutation(), MEDCoupling::DataArray::copyStringInfoFrom(), getNumberOfCells(), getNumberOfNodesPerCell(), MEDCoupling::DataArrayTemplate< T >::getPointer(), MEDCoupling::DataArrayInt::invertArrayO2N2N2O(), MEDCoupling::DataArrayInt::New(), and MEDCoupling::DataArrayTemplate< T >::useArray().
|
virtual |
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References MEDCoupling::DataArrayTemplate< T >::alloc(), MEDCoupling::MEDCouplingMesh::copyTinyInfoFrom(), MEDCoupling::MEDCoupling1GTUMesh::getCellModelEnum(), MEDCoupling::MEDCouplingPointSet::getCoords(), MEDCoupling::MEDCoupling1GTUMesh::getMeshDimension(), MEDCoupling::MEDCouplingMesh::getName(), getNumberOfCells(), getNumberOfNodesPerCell(), MEDCoupling::DataArrayTemplate< T >::getPointer(), MEDCoupling::MEDCouplingUMesh::New(), MEDCoupling::DataArrayInt::New(), MEDCoupling::DataArrayInt::Range(), MEDCoupling::MCAuto< T >::retn(), MEDCoupling::MEDCouplingUMesh::setConnectivity(), and MEDCoupling::MEDCouplingPointSet::setCoords().
Referenced by MEDCoupling::MEDCouplingStructuredMesh::buildUnstructured(), sortHexa8EachOther(), and structurizeMe().
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References INTERP_KERNEL::PLANAR_FACE_5, and INTERP_KERNEL::PLANAR_FACE_6.
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References MEDCoupling::MEDCoupling1GTUMesh::_cm, MEDCoupling::MEDCouplingPointSet::_coords, MEDCoupling::MEDCoupling1GTUMesh::getMeshDimension(), MEDCoupling::MEDCouplingMesh::getName(), getNumberOfCells(), MEDCoupling::DataArray::getNumberOfComponents(), MEDCoupling::DataArrayTemplate< T >::getNumberOfTuples(), and MEDCoupling::DataArrayTemplate< T >::isAllocated().
|
virtual |
Implements MEDCoupling::MEDCouplingPointSet.
References getNodalConnectivity(), and setNodalConnectivity().
|
virtual |
Implements MEDCoupling::MEDCouplingPointSet.
References Merge1SGTUMeshesOnSameCoords().
|
virtual |
Implements MEDCoupling::MEDCouplingPointSet.
References MEDCoupling::MEDCoupling1GTUMesh::_cm, MEDCoupling::MEDCouplingPointSet::_coords, MEDCoupling::DataArrayTemplate< T >::alloc(), MEDCoupling::MEDCouplingMesh::copyTinyInfoFrom(), MEDCoupling::MEDCouplingMesh::getName(), getNumberOfCells(), getNumberOfNodesPerCell(), MEDCoupling::DataArrayTemplate< T >::getPointer(), MEDCoupling::DataArrayInt::New(), MEDCoupling::MCAuto< T >::retn(), and MEDCoupling::MEDCouplingPointSet::setCoords().
|
virtual |
Implements MEDCoupling::MEDCouplingPointSet.
References MEDCoupling::MEDCoupling1GTUMesh::_cm, MEDCoupling::MEDCouplingPointSet::_coords, MEDCoupling::DataArrayTemplate< T >::alloc(), MEDCoupling::MEDCouplingMesh::copyTinyInfoFrom(), MEDCoupling::MEDCouplingMesh::getName(), getNumberOfCells(), MEDCoupling::DataArray::GetNumberOfItemGivenBESRelative(), getNumberOfNodesPerCell(), MEDCoupling::DataArrayTemplate< T >::getPointer(), MEDCoupling::DataArrayInt::New(), MEDCoupling::MCAuto< T >::retn(), and MEDCoupling::MEDCouplingPointSet::setCoords().
|
virtual |
Implements MEDCoupling::MEDCouplingPointSet.
Referenced by computeFetchedNodeIds().
|
virtual |
|
virtual |
Implements MEDCoupling::MEDCouplingPointSet.
References MEDCoupling::MEDCouplingPointSet::_coords.
Referenced by computeDiameterField(), and getReverseNodalConnectivity().
|
virtual |
First step of unserialization process.
Implements MEDCoupling::MEDCouplingPointSet.
|
virtual |
This method returns all node ids used in this. The data array returned has to be dealt by the caller. The returned node ids are sortes ascendingly. This method is closed to MEDCoupling1SGTUMesh::getNodeIdsInUse except the format of returned DataArrayInt instance.
Implements MEDCoupling::MEDCouplingPointSet.
References MEDCoupling::DataArrayTemplate< T >::alloc(), checkConsistencyOfConnectivity(), computeNodeIdsAlg(), MEDCoupling::MEDCouplingPointSet::getNumberOfNodes(), MEDCoupling::DataArrayTemplate< T >::getPointer(), MEDCoupling::DataArrayInt::New(), and MEDCoupling::MCAuto< T >::retn().
|
virtual |
Finds nodes not used in any cell and returns an array giving a new id to every node by excluding the unused nodes, for which the array holds -1. The result array is a mapping in "Old to New" mode.
[out] | nbrOfNodesInUse | - number of node ids present in the nodal connectivity. |
If | the coordinates array is not set. |
If | the nodal connectivity of cells is not defined. |
If | the nodal connectivity includes an invalid id. |
Implements MEDCoupling::MEDCouplingPointSet.
References MEDCoupling::DataArrayTemplate< T >::alloc(), getNumberOfCells(), MEDCoupling::MEDCouplingPointSet::getNumberOfNodes(), getNumberOfNodesPerCell(), MEDCoupling::DataArrayTemplate< T >::getPointer(), MEDCoupling::DataArrayInt::New(), and MEDCoupling::MCAuto< T >::retn().
|
virtual |
This method renumbers only nodal connectivity in this. The renumbering is only an offset applied. So this method is a specialization of renumberNodesInConn. WARNING, this method does not check that the resulting node ids in the nodal connectivity is in a valid range !
[in] | offset | - specifies the offset to be applied on each element of connectivity. |
Implements MEDCoupling::MEDCouplingPointSet.
References getNumberOfCells(), and updateTime().
|
virtual |
Same than renumberNodesInConn(const int *) except that here the format of old-to-new traducer is using map instead of array. This method is dedicated for renumbering from a big set of nodes the a tiny set of nodes which is the case during extraction of a big mesh.
Implements MEDCoupling::MEDCouplingPointSet.
References getNumberOfCells(), and updateTime().
|
virtual |
Changes ids of nodes within the nodal connectivity arrays according to a permutation array in "Old to New" mode. The node coordinates array is not changed by this method. This method is a generalization of shiftNodeNumbersInConn().
[in] | newNodeNumbersO2N | - a permutation array, of length this->getNumberOfNodes(), in "Old to New" mode. See Array indexing and numbering for more info on renumbering modes. |
If | the nodal connectivity of cells is not defined. |
Implements MEDCoupling::MEDCouplingPointSet.
References getNumberOfCells(), MEDCoupling::MEDCouplingPointSet::getNumberOfNodes(), and updateTime().
|
virtual |
Keeps from this only cells which constituing point id are in the ids specified by [begin,end). The resulting cell ids are stored at the end of the 'cellIdsKept' parameter. Parameter fullyIn specifies if a cell that has part of its nodes in ids array is kept or not. If fullyIn is true only cells whose ids are fully contained in [begin,end) tab will be kept.
[in] | begin | input start of array of node ids. |
[in] | end | input end of array of node ids. |
[in] | fullyIn | input that specifies if all node ids must be in [begin,end) array to consider cell to be in. |
[in,out] | cellIdsKeptArr | array where all candidate cell ids are put at the end. |
Implements MEDCoupling::MEDCouplingPointSet.
References MEDCoupling::DataArrayTemplate< T >::alloc(), getNumberOfCells(), getNumberOfNodesPerCell(), MEDCoupling::DataArrayInt::New(), MEDCoupling::DataArrayTemplate< T >::pushBackSilent(), and MEDCoupling::MCAuto< T >::retn().
|
virtual |
Implements MEDCoupling::MEDCouplingPointSet.
References getNumberOfNodesPerCell().
|
virtual |
This method aggregate the bbox of each cell and put it into bbox
[in] | arcDetEps | - a parameter specifying in case of 2D quadratic polygon cell the detection limit between linear and arc circle. (By default 1e-12) For all other cases this input parameter is ignored. |
If | this is not fully set (coordinates and connectivity). |
If | a cell in this has no valid nodeId. |
Implements MEDCoupling::MEDCouplingPointSet.
References MEDCoupling::MEDCouplingPointSet::_coords, MEDCoupling::DataArrayTemplate< T >::alloc(), MEDCoupling::DataArrayTemplate< T >::getConstPointer(), getNumberOfCells(), MEDCoupling::MEDCouplingPointSet::getNumberOfNodes(), getNumberOfNodesPerCell(), MEDCoupling::DataArrayTemplate< T >::getPointer(), MEDCoupling::MEDCouplingPointSet::getSpaceDimension(), MEDCoupling::DataArrayDouble::New(), and MEDCoupling::MCAuto< T >::retn().
|
virtual |
Returns the cell field giving for each cell in this its diameter. Diameter means the max length of all possible SEG2 in the cell.
Implements MEDCoupling::MEDCouplingPointSet.
References MEDCoupling::MEDCoupling1GTUMesh::_cm, MEDCoupling::DataArrayTemplate< T >::alloc(), MEDCoupling::DataArrayTemplate< T >::begin(), checkFullyDefined(), MEDCoupling::MEDCouplingPointSet::getCoords(), getNumberOfCells(), MEDCoupling::DataArrayTemplate< T >::getPointer(), MEDCoupling::MEDCouplingPointSet::getSpaceDimension(), MEDCoupling::MEDCouplingFieldDouble::New(), MEDCoupling::DataArrayDouble::New(), MEDCoupling::ON_CELLS, MEDCoupling::ONE_TIME, MEDCoupling::MCAuto< T >::retn(), MEDCoupling::MEDCouplingFieldT< T >::setArray(), MEDCoupling::MEDCouplingField::setMesh(), and MEDCoupling::MEDCouplingField::setName().
|
virtual |
|
virtual |
Allocates memory to store an estimation of the given number of cells. Closer is the estimation to the number of cells effectively inserted, less will be the needs to realloc. If the number of cells to be inserted is not known simply put 0 to this parameter. If a nodal connectivity previouly existed before the call of this method, it will be reset.
[in] | nbOfCells | - estimation of the number of cell this mesh will contain. |
Implements MEDCoupling::MEDCoupling1GTUMesh.
References MEDCoupling::TimeLabel::declareAsNew(), getNumberOfNodesPerCell(), and MEDCoupling::DataArrayInt::New().
|
virtual |
Appends at the end of this a cell having nodal connectivity array defined in [ nodalConnOfCellBg, nodalConnOfCellEnd ).
[in] | nodalConnOfCellBg | - the begin (included) of nodal connectivity of the cell to add. |
[in] | nodalConnOfCellEnd | - the end (excluded) of nodal connectivity of the cell to add. |
If | the length of the input nodal connectivity array of the cell to add is not equal to number of nodes per cell relative to the unique geometric type attached to this. If the nodal connectivity array in this is null (call MEDCoupling1SGTUMesh::allocateCells before). |
Implements MEDCoupling::MEDCoupling1GTUMesh.
References getNumberOfNodesPerCell(), and MEDCoupling::DataArrayTemplate< T >::pushBackValsSilent().
void MEDCoupling1SGTUMesh::setNodalConnectivity | ( | DataArrayInt * | nodalConn | ) |
Use nodalConn array as nodal connectivity of this. The input nodalConn pointer can be null.
References MEDCoupling::TimeLabel::declareAsNew(), and MEDCoupling::RefCountObjectOnly::incrRef().
Referenced by MEDCoupling::MEDCouplingStructuredMesh::build1SGTSubLevelMesh(), MEDCoupling::MEDCouplingStructuredMesh::build1SGTUnstructured(), MEDCoupling::MEDCouplingUMesh::convertIntoSingleGeoTypeMesh(), deepCopyConnectivityOnly(), explodeEachHexa8To6Quad4(), shallowCopyConnectivityFrom(), and MEDCoupling::MEDCouplingUMesh::tetrahedrize().
|
virtual |
Implements MEDCoupling::MEDCoupling1GTUMesh.
Referenced by explodeEachHexa8To6Quad4(), shallowCopyConnectivityFrom(), and sortHexa8EachOther().
int MEDCoupling1SGTUMesh::getNumberOfNodesPerCell | ( | ) | const |
References MEDCoupling::MEDCoupling1GTUMesh::_cm.
Referenced by advancedRepr(), allocateCells(), buildPartOfMySelfKeepCoords(), buildPartOfMySelfKeepCoordsSlice(), buildUnstructured(), computeEffectiveNbOfNodesPerCell(), computeIsoBarycenterOfNodesPerCell(), fillCellIdsToKeepFromNodeIds(), getBoundingBoxForBBTree(), getNodeIdsInUse(), getNodeIdsOfCell(), getNumberOfCells(), getNumberOfNodesInCell(), getReverseNodalConnectivity(), insertNextCell(), and renumberCells().
|
static |
|
static |
|
static |
If | presence of a null instance in the input vector a. |
If | a is empty |
References MEDCoupling::DataArrayInt::Aggregate(), MEDCoupling::MCAuto< T >::retn(), and MEDCoupling::MEDCouplingPointSet::setCoords().
Referenced by mergeMyselfWithOnSameCoords().
MEDCoupling1SGTUMesh * MEDCoupling1SGTUMesh::buildSetInstanceFromThis | ( | int | spaceDim | ) | const |
References MEDCoupling::MEDCoupling1GTUMesh::_cm, MEDCoupling::MEDCouplingPointSet::_coords, MEDCoupling::DataArrayTemplate< T >::alloc(), MEDCoupling::MEDCouplingMesh::getName(), MEDCoupling::DataArrayDouble::New(), MEDCoupling::DataArrayInt::New(), MEDCoupling::MCAuto< T >::retn(), and MEDCoupling::MEDCouplingPointSet::setCoords().
MEDCoupling1GTUMesh * MEDCoupling1SGTUMesh::computeDualMesh | ( | ) | const |
This method builds the dual mesh of this and returns it.
If | this is not a mesh containing only simplex cells. |
If | this is not correctly allocated (coordinates and connectivities have to be correctly set !). |
If | at least one node in this is orphan (without any simplex cell lying on it !) |
References MEDCoupling::MEDCoupling1GTUMesh::getCellModel(), and MEDCoupling::MEDCoupling1GTUMesh::getMeshDimension().
DataArrayInt * MEDCoupling1SGTUMesh::sortHexa8EachOther | ( | ) |
This method expects the this contains NORM_HEXA8 cells only. This method will sort each cells in this so that their numbering was homogeneous. If it succeeds the result of MEDCouplingUMesh::tetrahedrize will return a conform mesh.
If | this is not a mesh containing only NORM_HEXA8 cells. |
If | this is not properly allocated. |
References MEDCoupling::DataArrayTemplate< T >::alloc(), MEDCoupling::DataArrayTemplate< T >::begin(), buildUnstructured(), MEDCoupling::TimeLabel::declareAsNew(), MEDCoupling::DataArrayTemplate< T >::empty(), MEDCoupling::DataArrayTemplate< T >::end(), explodeEachHexa8To6Quad4(), getNodalConnectivity(), getNumberOfCells(), MEDCoupling::DataArrayTemplate< T >::getNumberOfTuples(), MEDCoupling::DataArrayTemplate< T >::getPointer(), HEXA8_FACE_PAIRS, MEDCoupling::DataArrayInt::New(), MEDCoupling::DataArrayTemplate< T >::pushBackSilent(), and MEDCoupling::MCAuto< T >::retn().
MEDCoupling1SGTUMesh * MEDCoupling1SGTUMesh::explodeEachHexa8To6Quad4 | ( | ) | const |
This method explode each NORM_HEXA8 cells in this into 6 NORM_QUAD4 cells and put the result into the MEDCoupling1SGTUMesh returned instance.
If | this is not a mesh containing only NORM_HEXA8 cells. |
If | this is not properly allocated. |
References MEDCoupling::DataArrayTemplate< T >::alloc(), MEDCoupling::MEDCoupling1GTUMesh::getCellModel(), MEDCoupling::MEDCouplingPointSet::getCoords(), MEDCoupling::MEDCouplingMesh::getName(), getNodalConnectivity(), getNumberOfCells(), MEDCoupling::DataArrayTemplate< T >::getPointer(), New(), MEDCoupling::DataArrayInt::New(), INTERP_KERNEL::NORM_HEXA8, INTERP_KERNEL::NORM_QUAD4, MEDCoupling::MCAuto< T >::retn(), MEDCoupling::MEDCouplingPointSet::setCoords(), and setNodalConnectivity().
Referenced by sortHexa8EachOther().
MEDCouplingCMesh * MEDCoupling1SGTUMesh::structurizeMe | ( | DataArrayInt *& | cellPerm, |
DataArrayInt *& | nodePerm, | ||
double | eps = 1e-12 |
||
) | const |
This method starts from an unstructured mesh that hides in reality a cartesian mesh. If it is not the case, an exception will be thrown. This method returns three objects : The cartesian mesh geometrically equivalent to this (within a precision of eps) and a permutation of cells and a permutation of nodes.
[out] | cellPerm | the permutation array of size this->getNumberOfCells() |
[out] | nodePerm | the permutation array of size this->getNumberOfNodes() |
References MEDCoupling::MEDCouplingStructuredMesh::buildUnstructured(), buildUnstructured(), checkConsistencyLight(), MEDCoupling::MEDCouplingMesh::copyTinyInfoFrom(), MEDCoupling::MEDCoupling1GTUMesh::getCellModelEnum(), MEDCoupling::MEDCouplingPointSet::getCoords(), MEDCoupling::DataArrayDouble::getDifferentValues(), MEDCoupling::MEDCouplingStructuredMesh::GetGeoTypeGivenMeshDimension(), MEDCoupling::MEDCoupling1GTUMesh::getMeshDimension(), MEDCoupling::MEDCouplingPointSet::getNumberOfNodes(), MEDCoupling::MEDCouplingStructuredMesh::getNumberOfNodes(), MEDCoupling::MEDCouplingPointSet::getSpaceDimension(), MEDCoupling::MEDCouplingCMesh::New(), MEDCoupling::MCAuto< T >::retn(), MEDCoupling::MEDCouplingCMesh::setCoordsAt(), and MEDCoupling::DataArrayTemplate< T >::sort().
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References MEDCoupling::MEDCouplingPointSet::_coords, MEDCoupling::MEDCoupling1GTUMesh::getCellModelEnum(), MEDCoupling::MEDCouplingMesh::getDescription(), MEDCoupling::MEDCouplingMesh::getName(), MEDCoupling::MEDCouplingMesh::getTime(), MEDCoupling::MEDCouplingMesh::getTimeUnit(), MEDCoupling::DataArrayDouble::getTinySerializationIntInformation(), and MEDCoupling::DataArrayDouble::getTinySerializationStrInformation().
|
virtual |
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References MEDCoupling::MEDCouplingPointSet::_coords, MEDCoupling::DataArrayTemplate< T >::alloc(), MEDCoupling::DataArrayTemplate< T >::begin(), MEDCoupling::DataArrayTemplate< T >::end(), MEDCoupling::DataArrayTemplate< T >::getNbOfElems(), MEDCoupling::DataArrayTemplate< T >::getPointer(), MEDCoupling::DataArrayTemplate< T >::isAllocated(), MEDCoupling::DataArrayDouble::New(), and MEDCoupling::DataArrayInt::New().
|
virtual |
Implements MEDCoupling::MEDCouplingMesh.
References MEDCoupling::MEDCoupling1GTUMesh::_cm, MEDCoupling::MEDCouplingPointSet::_coords, MEDCoupling::DataArrayTemplate< T >::begin(), MEDCoupling::DataArrayTemplate< T >::end(), MEDCoupling::DataArrayDouble::finishUnserialization(), MEDCoupling::DataArrayTemplate< T >::getPointer(), MEDCoupling::DataArrayDouble::New(), MEDCoupling::DataArrayInt::New(), MEDCoupling::DataArrayDouble::resizeForUnserialization(), MEDCoupling::MEDCouplingMesh::setDescription(), MEDCoupling::MEDCouplingMesh::setName(), MEDCoupling::MEDCouplingMesh::setTime(), and MEDCoupling::MEDCouplingMesh::setTimeUnit().
|
static |
Referenced by sortHexa8EachOther().