Geophysical Inversion and Modelling Library
v1.5.2-5-g042d7f36
|
Public Member Functions | |
TriangleWrapper (const Mesh &inMesh) | |
TriangleWrapper (const Mesh &inMesh, Mesh &outMesh, const std::string &triSwitches) | |
virtual | ~TriangleWrapper () |
void | setSwitches (const std::string &s) |
const std::string & | switches () const |
void | generate (Mesh &mesh) |
Mesh | generate () |
Protected Member Functions | |
void | init_ () |
void | transformTriangleToMesh_ (const triangulateio &trimesh, Mesh &mesh) |
void | transformMeshToTriangle_ (const Mesh &mesh, triangulateio &trimesh) |
void | allocateOutMemory_ () |
void | freeMemory_ () |
Protected Attributes | |
struct triangulateio * | mesh_input_ |
struct triangulateio * | mesh_output_ |
struct triangulateio * | mesh_voronoi_output_ |
std::string | switches_ |
const Mesh * | inMesh_ |
GIMLI::TriangleWrapper::TriangleWrapper | ( | const Mesh & | inMesh | ) |
Construct a PLC from nodes and edges in inMesh and initialize the trianglewrapper. Add region and hole marker later.
References init_().
GIMLI::TriangleWrapper::TriangleWrapper | ( | const Mesh & | inMesh, |
Mesh & | outMesh, | ||
const std::string & | triSwitches | ||
) |
Constructor initialize with input mesh (nodes and edges where used for input and also region marker, if added to the mesh) and generate the 2d mesh with corresponding triSwitches
References generate(), and init_().
|
virtual |
Default destructur
References freeMemory_().
|
protected |
For internal use only.
Referenced by generate(), and init_().
|
protected |
For internal use only.
Referenced by generate(), and ~TriangleWrapper().
Mesh GIMLI::TriangleWrapper::generate | ( | ) |
Generate and return the new mesh.
Referenced by TriangleWrapper().
void GIMLI::TriangleWrapper::generate | ( | Mesh & | mesh | ) |
Generate the mesh and store in mesh.
References allocateOutMemory_(), freeMemory_(), transformMeshToTriangle_(), and transformTriangleToMesh_().
|
protected |
void GIMLI::TriangleWrapper::setSwitches | ( | const std::string & | s | ) |
Set the triangle commandline switches
|
inline |
Return the triangle switches.
|
protected |
For internal use only. Only Edges and nodes(x,y) from mesh are used.
References GIMLI::MeshEntity::center(), GIMLI::Mesh::holeMarker(), and GIMLI::BaseEntity::id().
Referenced by generate().
|
protected |