1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#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