Programmer's Documentation

Public Member Functions | Private Member Functions | Private Attributes | List of all members
TgRefiner Class Reference

Detailed Description

Auxilliary data for tet mesh refinement using tetgen.

TgRefiner is used to write the metric files used by TetGen in order to refine an existing tetrahedral mesh so that it complies with criteria which cannot be expressed inside TetGen. In the present form, this class writes mtr files which approximately enforce an edge growth ratio limit.

See Also
PentaGrow, MxMesh

#include <tgrefiner.h>

Collaboration diagram for TgRefiner:

Public Member Functions

 TgRefiner ()
 set default values
uint appendBox (const Vct3 &plo, const Vct3 &phi, Real len)
 add another refinement box
void configure (const ConfigParser &cfg)
 read refinement box specification from config file
const Vector & edgeLengths (MxMesh &msh)
 determine target edge lengths
void writeMetricFile (const std::string &fname) const
 write nodal edge lengths to .mtr file

Private Member Functions

Real maxBoxedLength (const Vct3 &p) const
 determine maximum permitted edge length due to boxes

Private Attributes

Real m_fgrowth
 desired edge length growth factor
int m_nsiter
 number of edge length smoothing iterations
int m_ndistrib
Vector m_ledg
 nodal size field to be written to .mtr file
std::vector< Dop3d3< Real > > m_boxes
 refinement boxes
Vector m_lbox
 maximum permitted edge length within boxes

The documentation for this class was generated from the following files:
Generated on Wed Jan 19 2022 03:03:19 for libsurf by   doxygen 1.8.5