MeshKit  1.0
CAMALSizeEval Class Reference

The MeshKit-based size evaluator for CAMAL meshing algorithms. More...

#include <CAMALSizeEval.hpp>

List of all members.

Public Member Functions

 CAMALSizeEval (double size, SizingFunction *szf=NULL)
 Constructor.
virtual ~CAMALSizeEval ()
 Destructor.
virtual bool size_at_point (double x, double y, double z, double &size, int level=-1)
 Get the desired mesh size at a point in space.
virtual bool stretch_vector (double loc_x, double loc_y, double loc_z, double &vec_x, double &vec_y, double &vec_z)
 Get the desired anisotropic mesh size at a point in space in the given direction.
virtual bool tensor_at_point (double x, double y, double z, double *&size)
 Get the size tensor at a point in space.
virtual bool size_at_point (double u, double v, double &size, int level=-1)
 Get the desired mesh size at a point on the surface.
virtual bool stretch_vector (double loc_u, double loc_v, double &vec_u, double &vec_v)
 Get the desired anisotropic mesh size at a point in space in the given direction.
virtual bool tensor_at_point (double u, double v, double *&size)
 Get the size tensor at a point in space.
virtual bool size_at_point (double u, double &size, int level=-1)
 Get the desired mesh size at a point on a curve.
virtual bool is_anisotropic ()
 Get whether the sizing function is anisotropic or not.
double get_size ()
 Get the mesh size set on this sizeeval.
void set_size (double mesh_size)
 Set the mesh size set on this sizeeval.

Private Attributes

double meshSize
SizingFunctionsizingFunc

Detailed Description

The MeshKit-based size evaluator for CAMAL meshing algorithms.

Definition at line 12 of file CAMALSizeEval.hpp.


Constructor & Destructor Documentation

CAMALSizeEval ( double  size,
SizingFunction szf = NULL 
)

Constructor.

Parameters:
sizeSize setting for this evaluator

Definition at line 6 of file CAMALSizeEval.cpp.

~CAMALSizeEval ( ) [virtual]

Destructor.

Definition at line 11 of file CAMALSizeEval.cpp.


Member Function Documentation

double get_size ( ) [inline]

Get the mesh size set on this sizeeval.

Returns:
Mesh size

Definition at line 144 of file CAMALSizeEval.hpp.

bool is_anisotropic ( ) [virtual]

Get whether the sizing function is anisotropic or not.

Returns:
true if sizing function is anisotropic

Definition at line 74 of file CAMALSizeEval.cpp.

void set_size ( double  mesh_size) [inline]

Set the mesh size set on this sizeeval.

Parameters:
mesh_sizeMesh size being set

Definition at line 149 of file CAMALSizeEval.hpp.

bool size_at_point ( double  x,
double  y,
double  z,
double &  size,
int  level = -1 
) [virtual]

Get the desired mesh size at a point in space.

Parameters:
xThe x coordinate of the point
yThe y coordinate of the point
zThe z coordinate of the point
sizeThe desired mesh size at the point.
levelThe number of elements between the boundary and this point.
Returns:
true if a valid size is returned, false otherwise.

Definition at line 13 of file CAMALSizeEval.cpp.

bool size_at_point ( double  u,
double  v,
double &  size,
int  level = -1 
) [virtual]

Get the desired mesh size at a point on the surface.

Parameters:
uThe u parametric coordinate of the point
vThe v parametric coordinate of the point
sizeThe desired mesh size at the point.
levelThe number of elements between the boundary and this point.
Returns:
true if a valid size is returned, false otherwise.

Definition at line 43 of file CAMALSizeEval.cpp.

bool size_at_point ( double  u,
double &  size,
int  level = -1 
) [virtual]

Get the desired mesh size at a point on a curve.

Parameters:
uThe u parametric coordinate of the point
sizeThe desired mesh size at the point.
levelThe number of elements between the boundary and this point.
Returns:
true if a valid size is returned, false otherwise.

Definition at line 67 of file CAMALSizeEval.cpp.

bool stretch_vector ( double  loc_x,
double  loc_y,
double  loc_z,
double &  vec_x,
double &  vec_y,
double &  vec_z 
) [virtual]

Get the desired anisotropic mesh size at a point in space in the given direction.

Parameters:
loc_xThe x coordinate of the location
loc_yThe y coordinate of the location
loc_zThe z coordinate of the location
vec_xThe x component of the vector to be stretched, returned modified
vec_yThe y component of the vector to be stretched, returned modified
vec_zThe z component of the vector to be stretched, returned modified
Returns:
true if a valid size is returned, false otherwise.

Definition at line 25 of file CAMALSizeEval.cpp.

bool stretch_vector ( double  loc_u,
double  loc_v,
double &  vec_u,
double &  vec_v 
) [virtual]

Get the desired anisotropic mesh size at a point in space in the given direction.

Parameters:
loc_uThe u parametric coordinate of the point in the sizing field
loc_vThe v parametric coordinate of the point in the sizing field
vec_uThe u component of the direction to be stretched, returned modified
vec_vThe v component of the direction to be stretched, returned modified
Returns:
true if a valid size is returned, false otherwise.

Definition at line 50 of file CAMALSizeEval.cpp.

bool tensor_at_point ( double  x,
double  y,
double  z,
double *&  size 
) [virtual]

Get the size tensor at a point in space.

Parameters:
xThe x coordinate of the point
yThe y coordinate of the point
zThe z coordinate of the point
sizeThe size tensor at the point, xx, yy, zz, xy, yz, xz. Pointer only changed if a NULL is passed in.
Returns:
true if a valid size is returned, false otherwise.

Definition at line 34 of file CAMALSizeEval.cpp.

bool tensor_at_point ( double  u,
double  v,
double *&  size 
) [virtual]

Get the size tensor at a point in space.

Parameters:
uThe u parametric coordinate of the point
vThe v parametric coordinate of the point
sizeThe size tensor at the point. Pointer only changed if a NULL is passed in.
Returns:
true if a valid size is returned, false otherwise.

Definition at line 58 of file CAMALSizeEval.cpp.


Member Data Documentation

double meshSize [private]

Definition at line 139 of file CAMALSizeEval.hpp.

Definition at line 140 of file CAMALSizeEval.hpp.


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