MeshKit
1.0
|
A sizing function used with meshing algorithms. More...
#include <meshkit/SizingFunction.hpp>
Public Member Functions | |
SizingFunction (const SizingFunction &sf) | |
Copy constructor. | |
SizingFunction (MKCore *mkcore, int num_int=-1, double int_size=-1.0) | |
Constructor. | |
virtual | ~SizingFunction () |
Destructor. | |
MKCore * | mk_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 * | mkCore |
MKCore associated with this SizingFunction. | |
int | thisInterval |
Interval setting. | |
double | thisSize |
Size setting. | |
unsigned int | coreIndex |
This SizingFunction's index in MKCore. |
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.
Definition at line 18 of file SizingFunction.hpp.
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] |
Constructor.
Definition at line 79 of file SizingFunction.hpp.
~SizingFunction | ( | ) | [inline, virtual] |
Destructor.
Definition at line 86 of file SizingFunction.hpp.
unsigned int core_index | ( | ) | const [inline, virtual] |
Return index of this sf in MKCore.
Definition at line 116 of file SizingFunction.hpp.
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_int | Intervals to be set |
Definition at line 110 of file SizingFunction.hpp.
Get core instance.
Definition at line 92 of file SizingFunction.hpp.
double size | ( | double * | xyz = NULL | ) | const [inline, virtual] |
Get size with optional location.
xyz | Location where size is requested |
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.
unsigned int coreIndex [protected] |
This SizingFunction's index in MKCore.
Definition at line 65 of file SizingFunction.hpp.
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.