Public Member Functions | Private Attributes | List of all members
oomph::TetgenMeshFacetedSurface Class Reference

#include <tet_mesh.h>

+ Inheritance diagram for oomph::TetgenMeshFacetedSurface:

Public Member Functions

 TetgenMeshFacetedSurface (const Vector< Vector< double > > &vertex_coordinate, const Vector< Vector< unsigned > > &facet, const bool &split_boundaries=true)
 Constructor: Takes a vector of vertex coordinates, a vector of facet connectivities and an optional vector of boundary ids associated with each facet. The final boolean argument is used to control whether boundaries can be split. If it is false then additional nodes will NOT be added on any boundaries. More...
 
 TetgenMeshFacetedSurface (const Vector< Vector< double > > &vertex_coordinate, const Vector< Vector< unsigned > > &facet, const Vector< unsigned > &facet_boundary_id, const bool &split_boundaries=true)
 Constructor: Takes a vector of vertex coordinates, a vector of facet connectivities and an optional vector of boundary ids associated with each facet. The final boolean argument is used to control whether boundaries can be split. If it is false then additional nodes will NOT be added on any boundaries. More...
 
virtual ~TetgenMeshFacetedSurface ()
 Empty destructor. More...
 
unsigned nvertex () const
 Number of vertices. More...
 
unsigned nfacet () const
 Number of facets. More...
 
unsigned facet_boundary_id (const unsigned &i) const
 Boundary id. More...
 
const unsigned & vertex_boundary_id (const unsigned &n) const
 Return the vertex boundary id. More...
 
const double & vertex_coordinate (const unsigned &n, const unsigned &i) const
 i-th coordinats of n-th vertex More...
 
Vector< double > vertex_coordinate (const unsigned &i) const
 Coordinate vector of i-th vertex (const version) More...
 
Vector< double > & vertex_coordinate (const unsigned &i)
 Coordinate vector of i-th vertex. More...
 
Vector< unsigned > facet (const unsigned &i) const
 Definition of ith facet via connectivity list (const version) More...
 
Vector< unsigned > & facet (const unsigned &i)
 Definition of ith facet via connectivity list. More...
 
bool can_boundaries_be_split ()
 Test whether boundaries can be split. More...
 
- Public Member Functions inherited from oomph::TetgenMeshClosedSurface
 TetgenMeshClosedSurface ()
 Empty constructor. More...
 
virtual ~TetgenMeshClosedSurface ()
 Empty destructor. More...
 
const double & internal_point (const unsigned &i) const
 Coordinate of the internal point. More...
 
void set_hole (const Vector< double > &hole_point)
 
void set_region (const int &region, const Vector< double > &region_point)
 Set the region. More...
 
const int & region ()
 Return the region flag. More...
 
bool is_hole ()
 Is this a hole. More...
 
bool is_region ()
 Is it a specified region (i.e. region is positive) More...
 

Private Attributes

Vector< Vector< double > > Vertex_coordinate
 Vector of Vector of vertex coordinates. More...
 
Vector< Vector< unsigned > > Facet
 Vector of vectors of facet connectivity. More...
 
Vector< unsigned > Vertex_boundary_id
 Vector of vertex boundary ids. More...
 
Vector< unsigned > Facet_boundary_id
 Vector of Facet boundary ids. More...
 
bool Split_boundaries
 Boolean to indicate whether extra vertices can be added on the boundary. More...
 

Additional Inherited Members

- Protected Attributes inherited from oomph::TetgenMeshClosedSurface
int Region
 Integer to indicate the region contained within the surface Default values -10 (no internal point set), -1 (it's a hole) More...
 
Vector< double > Internal_point
 Storage for an internal point. More...
 

Detailed Description

Class that represents a (closed) tetgen boundary bounded by polygonal planar facets

Definition at line 110 of file tet_mesh.h.

Constructor & Destructor Documentation

oomph::TetgenMeshFacetedSurface::TetgenMeshFacetedSurface ( const Vector< Vector< double > > &  vertex_coordinate,
const Vector< Vector< unsigned > > &  facet,
const bool &  split_boundaries = true 
)
inline

Constructor: Takes a vector of vertex coordinates, a vector of facet connectivities and an optional vector of boundary ids associated with each facet. The final boolean argument is used to control whether boundaries can be split. If it is false then additional nodes will NOT be added on any boundaries.

Definition at line 119 of file tet_mesh.h.

References i, and Vertex_coordinate.

oomph::TetgenMeshFacetedSurface::TetgenMeshFacetedSurface ( const Vector< Vector< double > > &  vertex_coordinate,
const Vector< Vector< unsigned > > &  facet,
const Vector< unsigned > &  facet_boundary_id,
const bool &  split_boundaries = true 
)
inline

Constructor: Takes a vector of vertex coordinates, a vector of facet connectivities and an optional vector of boundary ids associated with each facet. The final boolean argument is used to control whether boundaries can be split. If it is false then additional nodes will NOT be added on any boundaries.

Definition at line 155 of file tet_mesh.h.

References Facet, Facet_boundary_id, i, Vertex_boundary_id, and Vertex_coordinate.

virtual oomph::TetgenMeshFacetedSurface::~TetgenMeshFacetedSurface ( )
inlinevirtual

Empty destructor.

Definition at line 211 of file tet_mesh.h.

Member Function Documentation

bool oomph::TetgenMeshFacetedSurface::can_boundaries_be_split ( )
inline

Test whether boundaries can be split.

Definition at line 257 of file tet_mesh.h.

References Split_boundaries.

Referenced by oomph::TetgenMesh< ELEMENT >::TetgenMesh().

Vector<unsigned> oomph::TetgenMeshFacetedSurface::facet ( const unsigned &  i) const
inline

Definition of ith facet via connectivity list (const version)

Definition at line 245 of file tet_mesh.h.

References Facet, and i.

Referenced by oomph::TetgenMesh< ELEMENT >::build_tetgenio().

Vector<unsigned>& oomph::TetgenMeshFacetedSurface::facet ( const unsigned &  i)
inline

Definition of ith facet via connectivity list.

Definition at line 251 of file tet_mesh.h.

References Facet, and i.

unsigned oomph::TetgenMeshFacetedSurface::facet_boundary_id ( const unsigned &  i) const
inline

Boundary id.

Definition at line 220 of file tet_mesh.h.

References Facet_boundary_id, and i.

Referenced by oomph::TetgenMesh< ELEMENT >::build_tetgenio().

unsigned oomph::TetgenMeshFacetedSurface::nfacet ( ) const
inline

Number of facets.

Definition at line 217 of file tet_mesh.h.

References Facet.

Referenced by oomph::TetgenMesh< ELEMENT >::build_tetgenio().

unsigned oomph::TetgenMeshFacetedSurface::nvertex ( ) const
inline

Number of vertices.

Definition at line 214 of file tet_mesh.h.

References Vertex_coordinate.

Referenced by oomph::TetgenMesh< ELEMENT >::build_tetgenio().

const unsigned& oomph::TetgenMeshFacetedSurface::vertex_boundary_id ( const unsigned &  n) const
inline

Return the vertex boundary id.

Definition at line 224 of file tet_mesh.h.

References Vertex_boundary_id.

Referenced by oomph::TetgenMesh< ELEMENT >::build_tetgenio().

const double& oomph::TetgenMeshFacetedSurface::vertex_coordinate ( const unsigned &  n,
const unsigned &  i 
) const
inline

i-th coordinats of n-th vertex

Definition at line 228 of file tet_mesh.h.

References i, and Vertex_coordinate.

Referenced by oomph::TetgenMesh< ELEMENT >::build_tetgenio().

Vector<double> oomph::TetgenMeshFacetedSurface::vertex_coordinate ( const unsigned &  i) const
inline

Coordinate vector of i-th vertex (const version)

Definition at line 233 of file tet_mesh.h.

References i, and Vertex_coordinate.

Vector<double>& oomph::TetgenMeshFacetedSurface::vertex_coordinate ( const unsigned &  i)
inline

Coordinate vector of i-th vertex.

Definition at line 239 of file tet_mesh.h.

References i, and Vertex_coordinate.

Member Data Documentation

Vector<Vector<unsigned> > oomph::TetgenMeshFacetedSurface::Facet
private

Vector of vectors of facet connectivity.

Definition at line 265 of file tet_mesh.h.

Referenced by facet(), nfacet(), and TetgenMeshFacetedSurface().

Vector<unsigned> oomph::TetgenMeshFacetedSurface::Facet_boundary_id
private

Vector of Facet boundary ids.

Definition at line 271 of file tet_mesh.h.

Referenced by facet_boundary_id(), and TetgenMeshFacetedSurface().

bool oomph::TetgenMeshFacetedSurface::Split_boundaries
private

Boolean to indicate whether extra vertices can be added on the boundary.

Definition at line 274 of file tet_mesh.h.

Referenced by can_boundaries_be_split().

Vector<unsigned> oomph::TetgenMeshFacetedSurface::Vertex_boundary_id
private

Vector of vertex boundary ids.

Definition at line 268 of file tet_mesh.h.

Referenced by TetgenMeshFacetedSurface(), and vertex_boundary_id().

Vector<Vector<double> > oomph::TetgenMeshFacetedSurface::Vertex_coordinate
private

Vector of Vector of vertex coordinates.

Definition at line 262 of file tet_mesh.h.

Referenced by nvertex(), TetgenMeshFacetedSurface(), and vertex_coordinate().


The documentation for this class was generated from the following file: