#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <sys/types.h>
#include <assert.h>
#include "CGMUtilConfigure.h"
#include <float.h>
Go to the source code of this file.
Defines |
#define | CUBIT_TRUE 1; |
#define | CUBIT_FALSE 0; |
#define | CUBIT_PI 3.1415926535897932384626 |
#define | DEGREES_TO_RADIANS(angle) ( (angle) / 180.0 * CUBIT_PI ) |
#define | RADIANS_TO_DEGREES(angle) ( 180.0 * (angle) / CUBIT_PI ) |
#define | CUBIT_INT_MAX INT_MAX |
#define | CUBIT_INT_MIN INT_MIN |
#define | CUBIT_DBL_MIN 1.0E-30 |
#define | CUBIT_DBL_MAX 1.0E30 |
#define | CUBIT_MIN(a, b) ( (a) < (b) ? (a) : (b) ) |
#define | CUBIT_MAX(a, b) ( (a) > (b) ? (a) : (b) ) |
#define | CUBIT_MIN_4(a, b, c, d) |
#define | CUBIT_MAX_4(a, b, c, d) |
Typedefs |
typedef unsigned int | Bit |
typedef unsigned short | IttyBit |
typedef unsigned char | cBit |
typedef char | CubitBoolean |
Enumerations |
enum | CubitStatus { CUBIT_FAILURE = 0,
CUBIT_SUCCESS = 1
} |
enum | CubitSense { CUBIT_UNKNOWN = -1,
CUBIT_FORWARD = 0,
CUBIT_REVERSED = 1
} |
enum | CubitPointContainment {
CUBIT_PNT_UNKNOWN = -1,
CUBIT_PNT_OUTSIDE = 0,
CUBIT_PNT_OFF = 0,
CUBIT_PNT_INSIDE = 1,
CUBIT_PNT_ON = 1,
CUBIT_PNT_BOUNDARY = 2
} |
enum | FirmnessType { LIMP,
SOFT,
FIRM,
HARD
} |
enum | SizeIntervalType { NOT_SET = LIMP,
CALCULATED = SOFT,
USER_SET = HARD
} |
enum | CubitEntityRelation { CUBIT_RELATION_NONE = -1,
CUBIT_RELATION_PARENT = 0,
CUBIT_RELATION_CHILD = 1
} |
enum | CubitAssocDataType {
CUBIT_ASSOC_NULL = 0,
CUBIT_ASSOC_GEOM_REFENTITY = 1,
CUBIT_ASSOC_BC_BLOCK = 2,
CUBIT_ASSOC_BC_NSET = 3,
CUBIT_ASSOC_BC_SSET = 4
} |
enum | ObserverType { MODEL_OBSERVER,
DRAWING_OBSERVER,
GUI_OBSERVER
} |
enum | CubitFacetboolOp { CUBIT_FB_UNION,
CUBIT_FB_INTERSECTION,
CUBIT_FB_SUBTRACTION
} |
Variables |
static int const | INVALID_ENTITY_ID = -1 |
Define Documentation
#define CUBIT_MAX |
( |
|
a, |
|
|
|
b |
|
) |
| ( (a) > (b) ? (a) : (b) ) |
Value:(( (a) > (b) ? (a) : (b) ) > \
( (c) > (d) ? (c) : (d) ) ? \
( (a) > (b) ? (a) : (b) ) : \
( (c) > (d) ? (c) : (d) ))
Definition at line 223 of file CubitDefines.h.
#define CUBIT_MIN |
( |
|
a, |
|
|
|
b |
|
) |
| ( (a) < (b) ? (a) : (b) ) |
Value:(( (a) < (b) ? (a) : (b) ) < \
( (c) < (d) ? (c) : (d) ) ? \
( (a) < (b) ? (a) : (b) ) : \
( (c) < (d) ? (c) : (d) ))
Definition at line 218 of file CubitDefines.h.
#define CUBIT_PI 3.1415926535897932384626 |
Typedef Documentation
typedef unsigned char cBit |
Enumeration Type Documentation
- Enumerator:
CUBIT_ASSOC_NULL |
|
CUBIT_ASSOC_GEOM_REFENTITY |
|
CUBIT_ASSOC_BC_BLOCK |
|
CUBIT_ASSOC_BC_NSET |
|
CUBIT_ASSOC_BC_SSET |
|
Definition at line 110 of file CubitDefines.h.
- Enumerator:
CUBIT_RELATION_NONE |
|
CUBIT_RELATION_PARENT |
|
CUBIT_RELATION_CHILD |
|
Definition at line 101 of file CubitDefines.h.
- Enumerator:
CUBIT_FB_UNION |
|
CUBIT_FB_INTERSECTION |
|
CUBIT_FB_SUBTRACTION |
|
Definition at line 131 of file CubitDefines.h.
- Enumerator:
CUBIT_PNT_UNKNOWN |
|
CUBIT_PNT_OUTSIDE |
|
CUBIT_PNT_OFF |
|
CUBIT_PNT_INSIDE |
|
CUBIT_PNT_ON |
|
CUBIT_PNT_BOUNDARY |
|
Definition at line 86 of file CubitDefines.h.
- Enumerator:
CUBIT_UNKNOWN |
|
CUBIT_FORWARD |
|
CUBIT_REVERSED |
|
Definition at line 80 of file CubitDefines.h.
- Enumerator:
CUBIT_FAILURE |
|
CUBIT_SUCCESS |
|
Definition at line 77 of file CubitDefines.h.
- Enumerator:
MODEL_OBSERVER |
|
DRAWING_OBSERVER |
|
GUI_OBSERVER |
|
Definition at line 119 of file CubitDefines.h.
- Enumerator:
NOT_SET |
|
CALCULATED |
|
USER_SET |
|
Definition at line 97 of file CubitDefines.h.
Variable Documentation