MeshKit  1.0
SizingFunction Class Reference

A sizing function used with meshing algorithms. More...

#include <meshkit/SizingFunction.hpp>

Inheritance diagram for SizingFunction:

List of all members.

Public Member Functions

 SizingFunction (const SizingFunction &sf)
 Copy constructor.
 SizingFunction (MKCore *mkcore, int num_int=-1, double int_size=-1.0)
virtual ~SizingFunction ()
MKCoremk_core () const
 Get core instance.
virtual double size (double *xyz=NULL) const
 Get size with optional location.
virtual int intervals () const
 Get the number of intervals (assuming they were set somehow somewhere else)
virtual void intervals (int num_int)
 Set the number of intervals.
virtual unsigned int core_index () const
 Return index of this sf in MKCore.
virtual bool variable ()

Protected Attributes

 MKCore associated with this SizingFunction.
int thisInterval
 Interval setting.
double thisSize
 Size setting.
unsigned int coreIndex
 This SizingFunction's index in MKCore.

Detailed Description

A sizing function used with meshing algorithms.

SizingFunction stores a requested size or # intervals; the actual # intervals, computed or just requested, is stored on the ModelEnt. The Firmness is also stored on the ModelEnt. This class manages its own adding to MBCore, so no need for caller to do that.

example_basic.cpp, example_camalpaver.cpp, example_edgemesher.cpp, example_intassign.cpp, example_jaalquad.cpp, example_ngtetmesher.cpp, example_onetooneswept.cpp, example_parallelmesher.cpp, example_setpnt2quad.cpp, example_tfimapping.cpp, and example_volice.cpp.

Definition at line 18 of file SizingFunction.hpp.

Constructor & Destructor Documentation

SizingFunction ( const SizingFunction sf) [inline]

Copy constructor.

Definition at line 72 of file SizingFunction.hpp.

SizingFunction ( MKCore mkcore,
int  num_int = -1,
double  int_size = -1.0 
) [inline]


Definition at line 79 of file SizingFunction.hpp.

~SizingFunction ( ) [inline, virtual]


Definition at line 86 of file SizingFunction.hpp.

Member Function Documentation

unsigned int core_index ( ) const [inline, virtual]
int intervals ( ) const [inline, virtual]

Get the number of intervals (assuming they were set somehow somewhere else)

Definition at line 104 of file SizingFunction.hpp.

void intervals ( int  num_int) [inline, virtual]

Set the number of intervals.

num_intIntervals to be set

Definition at line 110 of file SizingFunction.hpp.

MKCore * mk_core ( ) const [inline]

Get core instance.

Definition at line 92 of file SizingFunction.hpp.

double size ( double *  xyz = NULL) const [inline, virtual]

Get size with optional location.

xyzLocation where size is requested
Size at requested location

Reimplemented in SizingFunctionVar.

Definition at line 98 of file SizingFunction.hpp.

virtual bool variable ( ) [inline, virtual]

Reimplemented in SizingFunctionVar.

Definition at line 52 of file SizingFunction.hpp.

Member Data Documentation

unsigned int coreIndex [protected]

This SizingFunction's index in MKCore.

Definition at line 65 of file SizingFunction.hpp.

MKCore* mkCore [protected]

MKCore associated with this SizingFunction.

Definition at line 56 of file SizingFunction.hpp.

int thisInterval [protected]

Interval setting.

Definition at line 59 of file SizingFunction.hpp.

double thisSize [protected]

Size setting.

Definition at line 62 of file SizingFunction.hpp.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines