Programmer's Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DnRefineCriterion Class Reference

Detailed Description

Simplest mesh refinement criterion.

See Also

#include <dnrefine.h>

Inheritance diagram for DnRefineCriterion:
Collaboration diagram for DnRefineCriterion:

Public Member Functions

 DnRefineCriterion ()
 create unbound criterion (cannot be evaluated until bound)
 DnRefineCriterion (const DnMesh *pm)
 bind criterion object to mesh object
virtual ~DnRefineCriterion ()
virtual void bind (const DnMesh *pm) const
 bind to mesh object
void setCriteria (Real lmax, Real lmin, Real phimax, Real stretch, uint n=1073741824u)
 change refinement criteria
Real maxLength () const
 access specified maximum edge length
void maxLength (Real ml)
 set maximum edge length
Real minLength () const
 access specified minimum edge length
void minLength (Real ml)
 set minimum edge length
Real maxPhi () const
 access maximum normal angle
void maxPhi (Real mp)
 set maximum normal angle
Real maxStretch () const
 access stretch criterion
void maxStretch (Real ms)
 set stretch criterion
uint nmax () const
 access maximum number of vertices
void nmax (uint n)
 set maximum number of vertices
virtual Real eval (const uint *vi) const
 evaluate triangle 'quality' - larger value means earlier refinement
virtual void globalScale (Real f)
 apply a global scaling factor to all length values
virtual void fromXml (const XmlElement &xe)
 read criteria from xml representation
virtual XmlElement toXml () const
 write criteria to xml representation
virtual DnRefineCriterionclone () const
 clone object
- Public Member Functions inherited from DnCriterion
virtual ~DnCriterion ()
 virtual destructor

Static Public Member Functions

static DnRefineCriterionPtr createFromXml (const XmlElement &xe)
 create any criterion from XML

Protected Member Functions

void setDefault ()
 apply default parameters

Protected Attributes

const DnMeshmsh
 mesh object to ask for coordinates
Real maxlen
 limits on geometric properties
Real minlen
Real maxphi
Real maxstretch
Real mincosphi
 derived property for angle criterion
uint nvmax
 maximum number of vertices to create by refinement

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