#include <MeshSpherical.hpp>
Meshing defined in the Spherical Space
Public Member Functions | |
| MeshSpherical (const MatrixDense &apices=MatrixDense(), const MatrixInt &meshes=MatrixInt()) | |
| MeshSpherical (const MeshSpherical &m) | |
| MeshSpherical & | operator= (const MeshSpherical &m) |
| virtual | ~MeshSpherical () |
| String | toString (const AStringFormat *strfmt=nullptr) const override |
| Interface to AStringable. | |
| Id | getNApices () const override |
| Interface to AMesh. | |
| Id | getNMeshes () const override |
| double | getMeshSize (Id imesh) 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 |
| Id | getEmbeddedNDim () const override |
| void | getEmbeddedCoorPerMesh (Id imesh, Id ic, 1 &coords) const override |
| void | getEmbeddedCoorPerApex (Id iapex, 1 &coords) const override |
| void | getBarycenterInPlace (Id imesh, vect coord) const override |
| Id | reset (Id ndim, Id napexpermesh, const 1 &apices, const 1 &meshes, bool byCol, bool verbose=false) |
| Id | getVariety () const override |
| const MatrixDense & | getApices () const |
| const MatrixInt & | getMeshes () const |
| getMeshesAsVVI () 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 |
| 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"), bool verbose=false) 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 MeshSpherical * | createFromNF (const String &NFFilename, bool verbose=true) |
| static MeshSpherical * | create (const MatrixDense &apices=MatrixDense(), const MatrixInt &meshes=MatrixInt()) |
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 () |
| gstlrn::MeshSpherical::MeshSpherical | ( | const MatrixDense & | apices = MatrixDense(), |
| const MatrixInt & | meshes = MatrixInt() |
||
| ) |
| gstlrn::MeshSpherical::MeshSpherical | ( | const MeshSpherical & | m | ) |
|
virtual |
|
static |
|
static |
Create a MeshSpherical 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 the Mesh (from 0 to _nMeshes-1)) |
| [in] | rank | Rank of the Apex within a Mesh (from 0 to _nApices-1) |
Implements gstlrn::AMesh.
Returns coordinate 'idim' of apex 'i'
Implements gstlrn::AMesh.
|
inline |
Reimplemented from gstlrn::AMesh.
Returns the coordinate 'ic' of the Apex 'rank' of the Mesh 'imesh'
| [in] | imesh | Rank of the Mesh (from 0 to _nMeshes-1)) |
| [in] | rank | Rank of the Apex within a Mesh (from 0 to _nApices-1) |
| [in] | idim | Rank of the coordinate (from 0 to _ndimh-1) |
Implements gstlrn::AMesh.
|
overridevirtual |
Fill the coordinates of an apex in embedded space
| iapex | Apex index |
| coords | Array of coordinates |
Reimplemented from gstlrn::AMesh.
|
overridevirtual |
Fill the coordinates of a corner of a mesh in embedded space
| imesh | Mesh rank |
| ic | Corner index |
| coords | Array of coordinates |
Reimplemented from gstlrn::AMesh.
|
inlineoverridevirtual |
Reimplemented from 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 |
|
overridevirtual |
|
inlineoverridevirtual |
Returns the space variety
Reimplemented from gstlrn::AMesh.
| MeshSpherical & gstlrn::MeshSpherical::operator= | ( | const MeshSpherical & | m | ) |
| Id gstlrn::MeshSpherical::reset | ( | Id | ndim, |
| Id | napexpermesh, | ||
| const 1 & | apices, | ||
| const 1 & | meshes, | ||
| bool | byCol, | ||
| 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 |
|
overridevirtual |
Interface to AStringable.
Print the contents of the meshing
| [in] | strfmt | Format for printout |
Reimplemented from gstlrn::AMesh.