cgma
AnalyticGeometryTool.hpp File Reference
#include <math.h>
#include "CubitDefines.h"
#include "CGMGeomConfigure.h"
#include <iostream>

Go to the source code of this file.

Classes

struct  AGT_3D_Arc
struct  Point2
struct  Point3
struct  OBBox2
struct  OBBox3
struct  AgtLine
struct  Triangle
struct  AgtTriList
struct  Line3
struct  Circle3
struct  Triangle3
struct  Rectoid3
struct  Plane3
class  AnalyticGeometryTool
 Performs calculations on analytic geometry. More...
class  mgcEigen
class  mgcEigenD

Defines

#define number_sign(number)   (number<0 ? -1 : 1)
#define copy_vec(vec1, vec2)   copy_pnt(vec1,vec2)
#define set_vec(pnt, x, y, z)   set_pnt(pnt,x,y,z)
#define DIST(x)   (Sqrt(Abs(x)))

Typedefs

typedef struct AgtTriList AgtTriList

Enumerations

enum  AgtEquality { AGT_EQUAL = 0, AGT_LESSTHAN = 1, AGT_GREATERTHAN = 2 }
enum  AgtSide {
  AGT_ON_PLANE = 0, AGT_POS_SIDE = 1, AGT_NEG_SIDE = 2, AGT_INT_PLANE = 3,
  AGT_CROSS = 4
}
enum  AgtOrientation { AGT_OPP_DIR = 0, AGT_SAME_DIR = 1 }
enum  AgtDistanceMethod { AGT_FRACTION = 0, AGT_ABSOLUTE = 1 }

Variables

const double AGT_E = 2.7182818284590452354
const double AGT_LOG_2E = 1.4426950408889634074
const double AGT_LOG_10E = 0.43429448190325182765
const double AGT_LN_2 = 0.69314718055994530942
const double AGT_LN_10 = 2.30258509299404568402
const double AGT_PI = 3.14159265358979323846
const double AGT_PI_DIV_2 = 1.57079632679489661923
const double AGT_PI_DIV_4 = 0.78539816339744830962
const double AGT_1_DIV_PI = 0.31830988618379067154
const double AGT_2_DIV_PI = 0.63661977236758134308
const double AGT_2_DIV_SQRT_PI = 1.12837916709551257390
const double AGT_SQRT_2 = 1.41421356237309504880
const double AGT_SQRT_1_DIV_2 = 0.70710678118654752440
const double AGT_PI_DIV_180 = 0.017453292519943295
const double AGT_180_DIV_PI = 57.295779513082323
const double DEGtoRAD = AGT_PI_DIV_180
const double RADtoDEG = AGT_180_DIV_PI
const int maxPartition = 32
const int invInterp = 32
const double angleMin = -0.25*AGT_PI
const double angleMax = +0.25*AGT_PI
const double angleRange = 0.5*AGT_PI
const double par_tolerance = 1e-06

Define Documentation

#define copy_vec (   vec1,
  vec2 
)    copy_pnt(vec1,vec2)

Definition at line 123 of file AnalyticGeometryTool.hpp.

#define DIST (   x)    (Sqrt(Abs(x)))

Definition at line 167 of file AnalyticGeometryTool.hpp.

#define number_sign (   number)    (number<0 ? -1 : 1)

Definition at line 122 of file AnalyticGeometryTool.hpp.

#define set_vec (   pnt,
  x,
  y,
 
)    set_pnt(pnt,x,y,z)

Definition at line 124 of file AnalyticGeometryTool.hpp.


Typedef Documentation

typedef struct AgtTriList AgtTriList

Enumeration Type Documentation

Enumerator:
AGT_FRACTION 
AGT_ABSOLUTE 

Definition at line 116 of file AnalyticGeometryTool.hpp.

                         {
    AGT_FRACTION = 0,  // define for distance along a curve
    AGT_ABSOLUTE = 1   // define for distance along a curve
  };
Enumerator:
AGT_EQUAL 
AGT_LESSTHAN 
AGT_GREATERTHAN 

Definition at line 97 of file AnalyticGeometryTool.hpp.

                   {
     AGT_EQUAL       = 0, // define for comparisons
     AGT_LESSTHAN    = 1, // define for comparisons
     AGT_GREATERTHAN = 2  // define for comparisons
  };
Enumerator:
AGT_OPP_DIR 
AGT_SAME_DIR 

Definition at line 111 of file AnalyticGeometryTool.hpp.

                      {
    AGT_OPP_DIR = 0,  // define for vector direction comparision
    AGT_SAME_DIR = 1  // define for vector direction comparision
  };
enum AgtSide
Enumerator:
AGT_ON_PLANE 
AGT_POS_SIDE 
AGT_NEG_SIDE 
AGT_INT_PLANE 
AGT_CROSS 

Definition at line 103 of file AnalyticGeometryTool.hpp.

               {
     AGT_ON_PLANE =  0,  // define for which side of plane
     AGT_POS_SIDE =  1,  // define for which side of plane
     AGT_NEG_SIDE =  2,  // define for which side of plane
     AGT_INT_PLANE = 3,  // define for intersects plane
     AGT_CROSS = 4       // define for line crossing plane
  };

Variable Documentation

const double AGT_180_DIV_PI = 57.295779513082323

Definition at line 82 of file AnalyticGeometryTool.hpp.

const double AGT_1_DIV_PI = 0.31830988618379067154

Definition at line 76 of file AnalyticGeometryTool.hpp.

const double AGT_2_DIV_PI = 0.63661977236758134308

Definition at line 77 of file AnalyticGeometryTool.hpp.

const double AGT_2_DIV_SQRT_PI = 1.12837916709551257390

Definition at line 78 of file AnalyticGeometryTool.hpp.

const double AGT_E = 2.7182818284590452354

Definition at line 68 of file AnalyticGeometryTool.hpp.

const double AGT_LN_10 = 2.30258509299404568402

Definition at line 72 of file AnalyticGeometryTool.hpp.

const double AGT_LN_2 = 0.69314718055994530942

Definition at line 71 of file AnalyticGeometryTool.hpp.

const double AGT_LOG_10E = 0.43429448190325182765

Definition at line 70 of file AnalyticGeometryTool.hpp.

const double AGT_LOG_2E = 1.4426950408889634074

Definition at line 69 of file AnalyticGeometryTool.hpp.

const double AGT_PI = 3.14159265358979323846

Definition at line 73 of file AnalyticGeometryTool.hpp.

const double AGT_PI_DIV_180 = 0.017453292519943295

Definition at line 81 of file AnalyticGeometryTool.hpp.

const double AGT_PI_DIV_2 = 1.57079632679489661923

Definition at line 74 of file AnalyticGeometryTool.hpp.

const double AGT_PI_DIV_4 = 0.78539816339744830962

Definition at line 75 of file AnalyticGeometryTool.hpp.

const double AGT_SQRT_1_DIV_2 = 0.70710678118654752440

Definition at line 80 of file AnalyticGeometryTool.hpp.

const double AGT_SQRT_2 = 1.41421356237309504880

Definition at line 79 of file AnalyticGeometryTool.hpp.

const double angleMax = +0.25*AGT_PI

Definition at line 134 of file AnalyticGeometryTool.hpp.

const double angleMin = -0.25*AGT_PI

Definition at line 133 of file AnalyticGeometryTool.hpp.

const double angleRange = 0.5*AGT_PI

Definition at line 135 of file AnalyticGeometryTool.hpp.

const double DEGtoRAD = AGT_PI_DIV_180

Definition at line 84 of file AnalyticGeometryTool.hpp.

const int invInterp = 32

Definition at line 132 of file AnalyticGeometryTool.hpp.

const int maxPartition = 32

Definition at line 131 of file AnalyticGeometryTool.hpp.

const double par_tolerance = 1e-06

Definition at line 166 of file AnalyticGeometryTool.hpp.

const double RADtoDEG = AGT_180_DIV_PI

Definition at line 85 of file AnalyticGeometryTool.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines