Loading...
Searching...
No Matches
DelaunayMesh< Triangulation > Class Template Reference

The vertex and cell classes must have an index defined. More...

#include <DelaunayMesh.H>

Inheritance diagram for DelaunayMesh< Triangulation >:
Collaboration diagram for DelaunayMesh< Triangulation >:

Public Types

typedef Triangulation::Cell_handle Cell_handle
typedef Triangulation::Vertex_handle Vertex_handle
typedef Triangulation::Edge Edge
typedef Triangulation::Point Point
typedef Triangulation::Facet Facet
typedef Triangulation::Finite_vertices_iterator Finite_vertices_iterator
typedef Triangulation::Finite_cells_iterator Finite_cells_iterator
typedef Triangulation::Finite_facets_iterator Finite_facets_iterator

Public Member Functions

 DelaunayMesh (const Time &runTime)
 Construct from components.
 DelaunayMesh (const Time &runTime, const word &meshName)
 ~DelaunayMesh ()
 Destructor.
const Timetime () const
 Return a reference to the Time object.
void timeCheck (const string &description, const bool check=true) const
 Write the cpuTime to screen.
label getNewCellIndex () const
 Create a new unique cell index and return.
label getNewVertexIndex () const
 Create a new unique vertex index and return.
label cellCount () const
 Return the cell count (the next unique cell index).
label vertexCount () const
 Return the vertex count (the next unique vertex index).
void resetCellCount ()
 Set the cell count to zero.
void resetVertexCount ()
 Set the vertex count to zero.
void reset ()
 Clear the entire triangulation.
Map< label > insertPoints (const List< Vb > &vertices, const bool reIndex)
 Insert the list of vertices (calls rangeInsertWithInfo).
template<class PointIterator>
Map< label > rangeInsertWithInfo (PointIterator begin, PointIterator end, bool printErrors=false, bool reIndex=true)
 Function inserting points into a triangulation and setting the.
void printInfo (Ostream &os) const
 Write mesh statistics to stream.
void printVertexInfo (Ostream &os) const
 Write vertex statistics in the form of a table to stream.
autoPtr< polyMeshcreateMesh (const fileName &name, labelPairLookup &vertexMap, labelList &cellMap, const bool writeDelaunayData=true) const
 Create an fvMesh from the triangulation.

Detailed Description

template<class Triangulation>
class Foam::DelaunayMesh< Triangulation >

The vertex and cell classes must have an index defined.

Source files

Definition at line 56 of file DelaunayMesh.H.

Member Typedef Documentation

◆ Cell_handle

template<class Triangulation>
typedef Triangulation::Cell_handle Cell_handle

Definition at line 62 of file DelaunayMesh.H.

◆ Vertex_handle

template<class Triangulation>
typedef Triangulation::Vertex_handle Vertex_handle

Definition at line 63 of file DelaunayMesh.H.

◆ Edge

template<class Triangulation>
typedef Triangulation::Edge Edge

Definition at line 64 of file DelaunayMesh.H.

◆ Point

template<class Triangulation>
typedef Triangulation::Point Point

Definition at line 65 of file DelaunayMesh.H.

◆ Facet

template<class Triangulation>
typedef Triangulation::Facet Facet

Definition at line 66 of file DelaunayMesh.H.

◆ Finite_vertices_iterator

template<class Triangulation>
typedef Triangulation::Finite_vertices_iterator Finite_vertices_iterator

Definition at line 69 of file DelaunayMesh.H.

◆ Finite_cells_iterator

template<class Triangulation>
typedef Triangulation::Finite_cells_iterator Finite_cells_iterator

Definition at line 71 of file DelaunayMesh.H.

◆ Finite_facets_iterator

template<class Triangulation>
typedef Triangulation::Finite_facets_iterator Finite_facets_iterator

Definition at line 73 of file DelaunayMesh.H.

Constructor & Destructor Documentation

◆ DelaunayMesh() [1/2]

template<class Triangulation>
DelaunayMesh ( const Time & runTime)
explicit

Construct from components.

References runTime.

◆ DelaunayMesh() [2/2]

template<class Triangulation>
DelaunayMesh ( const Time & runTime,
const word & meshName )

References runTime.

◆ ~DelaunayMesh()

template<class Triangulation>
~DelaunayMesh ( )

Destructor.

References Foam::check().

Here is the call graph for this function:

Member Function Documentation

◆ time()

template<class Triangulation>
const Foam::Time & time ( ) const
inline

Return a reference to the Time object.

Definition at line 24 of file DelaunayMeshI.H.

Referenced by timeCheck().

Here is the caller graph for this function:

◆ timeCheck()

template<class Triangulation>
void timeCheck ( const string & description,
const bool check = true ) const
inline

Write the cpuTime to screen.

Definition at line 31 of file DelaunayMeshI.H.

References Foam::check(), Foam::endl(), Foam::Info, Foam::nl, and time().

Referenced by DistributedDelaunayMesh< Triangulation >::~DistributedDelaunayMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNewCellIndex()

template<class Triangulation>
Foam::label getNewCellIndex ( ) const
inline

Create a new unique cell index and return.

Definition at line 58 of file DelaunayMeshI.H.

References Foam::endl(), Foam::labelMax, and WarningInFunction.

Here is the call graph for this function:

◆ getNewVertexIndex()

template<class Triangulation>
Foam::label getNewVertexIndex ( ) const
inline

Create a new unique vertex index and return.

Definition at line 73 of file DelaunayMeshI.H.

References Foam::endl(), Foam::labelMax, and WarningInFunction.

Here is the call graph for this function:

◆ cellCount()

template<class Triangulation>
Foam::label cellCount ( ) const
inline

Return the cell count (the next unique cell index).

Definition at line 88 of file DelaunayMeshI.H.

◆ vertexCount()

template<class Triangulation>
Foam::label vertexCount ( ) const
inline

Return the vertex count (the next unique vertex index).

Definition at line 95 of file DelaunayMeshI.H.

◆ resetCellCount()

template<class Triangulation>
void resetCellCount ( )
inline

Set the cell count to zero.

Definition at line 102 of file DelaunayMeshI.H.

◆ resetVertexCount()

template<class Triangulation>
void resetVertexCount ( )
inline

Set the vertex count to zero.

Definition at line 109 of file DelaunayMeshI.H.

◆ reset()

template<class Triangulation>
void reset ( )

Clear the entire triangulation.

◆ insertPoints()

template<class Triangulation>
Map< label > insertPoints ( const List< Vb > & vertices,
const bool reIndex )

Insert the list of vertices (calls rangeInsertWithInfo).

References Foam::vertices().

Here is the call graph for this function:

◆ rangeInsertWithInfo()

template<class Triangulation>
template<class PointIterator>
Map< label > rangeInsertWithInfo ( PointIterator begin,
PointIterator end,
bool printErrors = false,
bool reIndex = true )

Function inserting points into a triangulation and setting the.

index and type data of the point in the correct order. This is faster than inserting points individually.

Adapted from a post on the CGAL lists: 2010-01/msg00004.html by Sebastien Loriot (Geometry Factory).

◆ printInfo()

template<class Triangulation>
void printInfo ( Ostream & os) const

Write mesh statistics to stream.

References os().

Here is the call graph for this function:

◆ printVertexInfo()

template<class Triangulation>
void printVertexInfo ( Ostream & os) const

Write vertex statistics in the form of a table to stream.

References os().

Here is the call graph for this function:

◆ createMesh()

template<class Triangulation>
autoPtr< polyMesh > createMesh ( const fileName & name,
labelPairLookup & vertexMap,
labelList & cellMap,
const bool writeDelaunayData = true ) const

Create an fvMesh from the triangulation.

The mesh is not parallel consistent - only used for viewing

References Foam::name().

Here is the call graph for this function:

The documentation for this class was generated from the following files:
  • applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/DelaunayMesh/DelaunayMesh.H
  • applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/DelaunayMesh/DelaunayMeshI.H