#include "CAMALSizeEval.hpp"
namespace MeshKit
{
CAMALSizeEval::CAMALSizeEval(double size, SizingFunction * szf)
: meshSize(size), sizingFunc(szf)
{
}
CAMALSizeEval::~CAMALSizeEval() {}
bool CAMALSizeEval::size_at_point(double x, double y, double z, double& size, <--- The function 'size_at_point' is never used.
int level)
{
size = meshSize;
if (sizingFunc)
{
double pos[3] = {x, y, z};
size = sizingFunc->size(pos);
}
return true;
}
bool CAMALSizeEval::stretch_vector(double loc_x, double loc_y, double loc_z,<--- The function 'stretch_vector' is never used.
double& vec_x, double& vec_y, double& vec_z)
{
vec_x = loc_x;
vec_y = loc_y;
vec_z = loc_z;
return true;
}
bool CAMALSizeEval::tensor_at_point(double x, double y, double z, <--- The function 'tensor_at_point' is never used.
double*& size)
{
for (int i = 0; i < 9; i++) {
size[i] = meshSize;
}
return true;
}
bool CAMALSizeEval::size_at_point(double u, double v, double& size,
int level)
{
size = meshSize;
return true;
}
bool CAMALSizeEval::stretch_vector(double loc_u, double loc_v,
double& vec_u, double& vec_v)
{
vec_u = loc_u;
vec_v = loc_v;
return true;
}
bool CAMALSizeEval::tensor_at_point(double u, double v,
double*& size)
{
for (int i = 0; i < 4; i++) {
size[i] = meshSize;
}
return true;
}
bool CAMALSizeEval::size_at_point(double u, double& size,
int level)
{
size = meshSize;
return true;
}
bool CAMALSizeEval::is_anisotropic()<--- The function 'is_anisotropic' is never used.
{
return false;
}
} // namespace MeshKit