#include <MeshEStandard.hpp>
Standard Meshing defined in the Euclidean space
Public Member Functions | |
| MeshEStandard () | |
| MeshEStandard (const MeshEStandard &m) | |
| MeshEStandard & | operator= (const MeshEStandard &m) |
| virtual | ~MeshEStandard () |
| String | toString (const AStringFormat *strfmt=nullptr) const override |
| Interface to AStringable. | |
| String | getNFName () const override |
| ASeriazable interface. | |
| Id | getNApices () const override |
| Interface for AMesh. | |
| Id | getNMeshes () const override |
| Id | getApex (Id imesh, Id rank) const override |
| double | getCoor (Id imesh, Id rank, Id idim) const override |
| double | getApexCoor (Id i, Id idim) const override |
| double | getMeshSize (Id imesh) const override |
| getMeshList () const | |
| getPointList (bool byCol=true) const | |
| Id | reset (const MatrixDense &apices, const MatrixInt &meshes, bool verbose=false) |
| Id | reset (Id ndim, Id napexpermesh, const 1 &apices, const 1 &meshes, bool byCol=true, bool verbose=false) |
| Id | resetFromTurbo (const MeshETurbo &turbo, bool verbose=false) |
| const MatrixDense & | getApices () const |
| const MatrixInt & | getMeshes () const |
Public Member Functions inherited from gstlrn::AMesh | |
| AMesh () | |
| AMesh (const AMesh &m) | |
| AMesh & | operator= (const AMesh &m) |
| virtual | ~AMesh () |
| virtual Id | getNApexPerMesh () const |
| Interface for AMesh. | |
| virtual void | getCoordinatesPerMeshInPlace (Id imesh, Id rank, 1 &coords) const |
| virtual void | getApexCoordinatesInPlace (Id i, 1 &coords) const |
| virtual void | resetProjFromDb (ProjMatrix *m, const Db *db, Id rankZ=-1, bool verbose=false) const |
| virtual Id | getVariety () const |
| virtual Id | getEmbeddedNDim () const |
| virtual void | getEmbeddedCoorPerMesh (Id imesh, Id ic, 1 &coords) const |
| virtual void | getEmbeddedCoorPerApex (Id iapex, 1 &coords) const |
| virtual void | getBarycenterInPlace (Id imesh, vect coord) const |
| ProjMatrix * | createProjMatrix (const Db *db, Id rankZ=-1, bool verbose=false) const |
| Id | getNDim () const |
| double | getExtendMin (Id idim) const |
| double | getExtendMax (Id idim) const |
| getExtrema (Id idim) const | |
| void | getElements (MatrixDense &apices, MatrixInt &meshes) const |
| Id | isCompatibleDb (const Db *db) const |
| getMeshSizes () const | |
| void | printMesh (Id imesh0=-1) const |
| void | printMeshes (Id level=0, Id nline_max=-1) const |
| getCoordinatesPerApex (Id idim) const | |
| getMeshByApexPair (Id apex1, Id apex2) const | |
| getCoordinatesPerMesh (Id imesh, Id idim, bool flagClose=false) const | |
| getApexCoordinates (Id iapex) const | |
| getCoordinatesPerMesh (Id imesh) const | |
| getEmbeddedCoordinatesPerMesh (Id imesh=0) const | |
| void | getEmbeddedCoordinatesPerMeshInPlace (Id imesh, 1 &vec) const |
| getEmbeddedCoordinatesPerApex () const | |
| getDistances (Id iapex0, const 1 &japices=1()) const | |
| getAllCoordinates () const | |
| MatrixDense | getAllApices () const |
| MatrixInt | getAllMeshes () const |
| double | getCenterCoordinate (Id imesh, Id idim) const |
| getAllCenterCoordinates () const | |
| getNeighborhoodPerMesh () const | |
| getNeighborhoodPerApex () const | |
Public Member Functions inherited from gstlrn::AStringable | |
| AStringable () | |
| AStringable (const AStringable &r) | |
| AStringable & | operator= (const AStringable &r) |
| virtual | ~AStringable () |
| virtual void | display (const AStringFormat *strfmt=nullptr) const final |
| virtual void | display (Id level) const final |
Public Member Functions inherited from gstlrn::ASerializable | |
| ASerializable () | |
| ASerializable (const ASerializable &r) | |
| ASerializable & | operator= (const ASerializable &r) |
| ASerializable (ASerializable &&r) noexcept | |
| ASerializable & | operator= (ASerializable &&r) noexcept |
| virtual | ~ASerializable () |
| bool | dumpToNF (const String &NFFilename, const EFormatNF &format=EFormatNF::fromKey("DEFAULT")) const |
| Dump the contents of an object into an Output File using a given Output NF Format. | |
| void | setDefaultFormatNF (const EFormatNF &format) |
Static Public Member Functions | |
| static MeshEStandard * | createFromNF (const String &NFFilename, bool verbose=true) |
| static MeshEStandard * | createFromExternal (const MatrixDense &apices, const MatrixInt &meshes, bool verbose=false) |
Static Public Member Functions inherited from gstlrn::AMesh | |
| static void | dumpNeighborhood (std::vector< 1 > &Vmesh, Id nline_max=1) |
Static Public Member Functions inherited from gstlrn::ASerializable | |
| static String | buildFileName (Id status, const String &filename, bool ensureDirExist=false) |
| static String | getFileIdentity (const String &filename, bool verbose=false) |
| static void | setPrefixName (const String &prefixName) |
| static void | unsetPrefixName () |
| static const String & | getPrefixName () |
Friends | |
| class | DbMeshStandard |
| gstlrn::MeshEStandard::MeshEStandard | ( | ) |
| gstlrn::MeshEStandard::MeshEStandard | ( | const MeshEStandard & | m | ) |
|
virtual |
|
static |
|
static |
Create a MeshEStandard by loading the contents of a Neutral File
| NFFilename | Name of the Neutral File (MeshEStandard format) |
| verbose | Verbose |
Returns the rank of the Apex 'rank' of the Mesh 'imesh'
| [in] | imesh | Rank of Mesh (from 0 to _nMeshes-1)) |
| [in] | rank | Rank of Apex within a Mesh (from 0 to _nApexPerMesh) |
Implements gstlrn::AMesh.
Returns coordinate 'idim' of apex 'i'
Implements gstlrn::AMesh.
|
inline |
Returns the coordinate 'idim' of the Apex 'rank' of the Mesh 'imesh'
| [in] | imesh | Rank of the Mesh (from 0 to _nMeshes-1)) |
| [in] | rank | Rank of Apex within a Mesh (from 0 to _nApexPerMesh-1) |
| [in] | idim | Rank of the coordinate (from 0 to _nDim-1) |
Implements gstlrn::AMesh.
|
inline |
|
inline |
|
overridevirtual |
Returns the size of the Mesh 'imesh'
| [in] | imesh | Rank of the Mesh (from 0 to _nMeshes-1)) |
Implements gstlrn::AMesh.
|
overridevirtual |
|
inlineoverridevirtual |
ASeriazable interface.
Reimplemented from gstlrn::AMesh.
|
overridevirtual |
| gstlrn::MeshEStandard::getPointList | ( | bool | byCol = true | ) | const |
Returns the list of mesh vertex information This List is organized as a single Vector of Double It is dimensioned to Nrows=getNApices() and Ncols=getNDim()
| byCol | true if the values must be sorted by column |
| MeshEStandard & gstlrn::MeshEStandard::operator= | ( | const MeshEStandard & | m | ) |
| Id gstlrn::MeshEStandard::reset | ( | const MatrixDense & | apices, |
| const MatrixInt & | meshes, | ||
| bool | verbose = false |
||
| ) |
Create the meshing (from mesh information)
| [in] | apices | Matrix of Apices |
| [in] | meshes | Array of mesh indices |
| [in] | verbose | Verbose flag |
| Id gstlrn::MeshEStandard::reset | ( | Id | ndim, |
| Id | napexpermesh, | ||
| const 1 & | apices, | ||
| const 1 & | meshes, | ||
| bool | byCol = true, |
||
| bool | verbose = false |
||
| ) |
Create the meshing (from mesh information)
| [in] | ndim | Space Dimension |
| [in] | napexpermesh | Number of apices per mesh |
| [in] | apices | Vector of Apex information |
| [in] | meshes | Vector of mesh indices |
| [in] | byCol | true for Column major; false for Row Major |
| [in] | verbose | Verbose flag |
| Id gstlrn::MeshEStandard::resetFromTurbo | ( | const MeshETurbo & | turbo, |
| bool | verbose = false |
||
| ) |
|
overridevirtual |
Interface to AStringable.
Print the contents of the meshing
| [in] | strfmt | Format for printout |
Reimplemented from gstlrn::AMesh.
|
friend |