CMLSizer Class Reference

The sizer class implements localized sizing functions used in various surface meshers. More...

#include <CMLSizer.hpp>

List of all members.

Public Types

 LINEAR
 linear weighting of the size at near points
 INTERVAL
 interval weighting of the size at near points
 INVERSE
 inverse interval weighting of the size at near points
enum  FunctionType { LINEAR, INTERVAL, INVERSE }
 Enumeration of the allowable sizing functions. More...

Public Member Functions

virtual bool set_boundary (int num_points, double *points, double *sizes, int num_loops, int *loop_sizes, int *loops)
 Supply the surface mesh describing the surface boundary.
virtual double size_at_point (double u, double v)
 Get the element size at the parametric coordinate.
virtual double size_at_point (double x, double y, double z)
 Get the element size at the cartesian coordinate.
virtual bool set_neighbor_count (int n)
 Set the neighbor count.
Constructor/Destructor
 CMLSizer (FunctionType size_type, CMLSurfEval *surf_eval)
 Constructor for the sizer class.


Detailed Description

The sizer class implements localized sizing functions used in various surface meshers.


Member Enumeration Documentation

enum CMLSizer::FunctionType

Enumeration of the allowable sizing functions.

Enumerator:
LINEAR  linear weighting of the size at near points
INTERVAL  interval weighting of the size at near points
INVERSE  inverse interval weighting of the size at near points


Constructor & Destructor Documentation

CMLSizer::CMLSizer ( FunctionType  size_type,
CMLSurfEval surf_eval 
)

Constructor for the sizer class.

Parameters:
size_type The desired sizing function type.
See also:
FuntionType above.
Parameters:
surf_eval A pointer to the users implementation of the surface evaluator class, CMLSurfEval.


Member Function Documentation

virtual bool CMLSizer::set_boundary ( int  num_points,
double *  points,
double *  sizes,
int  num_loops,
int *  loop_sizes,
int *  loops 
) [virtual]

Supply the surface mesh describing the surface boundary.

Parameters:
num_points The number of points in the boundary mesh.
points An array of points (array size = 3 * num_points_in.)
The first three array values are the x, y and z coordinates of the first point. The next three are for the second point, then the third, etc.
sizes An array of sizes cooresponding to the points (array size = num_points_in.)
num_loops The number of loops that describe the boundary of the surface.
loop_sizes The number of unique point ids in each loop in loops. (array size = num_loops)
loops connectivity of boundary mesh (array size = sum of values in loop_sizes)
Returns:
true if successful, false otherwise.

virtual bool CMLSizer::set_neighbor_count ( int  n  )  [virtual]

Set the neighbor count.

Parameters:
n The number of neighbors to use in computing the size.
Returns:
true if successful, false otherwise.

virtual double CMLSizer::size_at_point ( double  x,
double  y,
double  z 
) [virtual]

Get the element size at the cartesian coordinate.

Parameters:
x The x value of the cartesian coordinate.
y The y value of the cartesian coordinate.
z The z value of the cartesian coordinate.
Returns:
The size at the point specified by x,y,z.

virtual double CMLSizer::size_at_point ( double  u,
double  v 
) [virtual]

Get the element size at the parametric coordinate.

Parameters:
u The u value of the parametric coordinate.
v The v value of the parametric coordinate.
Returns:
The size at the point specified by u,v.


The documentation for this class was generated from the following file:

CAMAL 5.2-0 documentation created on 1 Jun 2010
Comments to csimsoft.com