28 #ifndef __vtkvmtkMath_h 29 #define __vtkvmtkMath_h 31 #include "vtkObject.h" 34 #include "vtkvmtkWin32Header.h" 36 #define VTK_VMTK_NON_OBTUSE 0 37 #define VTK_VMTK_OBTUSE_IN_POINT 1 38 #define VTK_VMTK_OBTUSE_NOT_IN_POINT 2 48 static double Cotangent(
double point0[3],
double point1[3],
double point2[3]);
49 static double TriangleArea(
double point0[3],
double point1[3],
double point2[3]);
50 static int IsAngleObtuse(
double point0[3],
double point1[3],
double point2[3]);
51 static int IsTriangleObtuse(
double point0[3],
double point1[3],
double point2[3]);
52 static double VoronoiSectorArea(
double point0[3],
double point1[3],
double point2[3]);
53 static double TriangleGradient(
double point0[3],
double point1[3],
double point2[3],
double scalar0,
double scalar1,
double scalar2,
double gradient[3]);
54 static void TwoSphereIntersection(
double center0[3],
double radius0,
double center1[3],
double radius1,
double origin[3],
double normal[3]);
55 static double AngleBetweenNormals(
double normal0[3],
double normal1[3]);
56 static double EvaluateSphereFunction(
double center[3],
double radius,
double point[3]);
static double GetTolerance(float cookie)
#define VTK_VMTK_LARGE_DOUBLE
#define VTK_VMTK_LARGE_FLOAT
#define VTK_VMTK_DOUBLE_TOL
Static utility mathematical functions included to avoid repeating ourselves.
static double GetLarge(double cookie)
#define VTK_VMTK_FLOAT_TOL
static double GetTolerance(double cookie)
static double GetLarge(float cookie)