BOOLEAN.H File Reference
Go to the source code of this file.
|
Data Structures |
struct | Boolean_WORKEDGE |
| Internal structure used by Boolean modelling action (DLL). More...
|
struct | Boolean_WORKFACE |
| Internal structure used by Boolean modelling action (DLL). More...
|
struct | Boolean_TOOLEDGE |
| Internal structure used by Boolean modelling action (DLL). More...
|
struct | Boolean_TOOLFACE |
| Internal structure used by Boolean modelling action (DLL). More...
|
struct | Boolean_VTXADJ |
| Internal structure used by Boolean modelling action (DLL). More...
|
Defines |
#define | min(a, b) ( ((a) < (b)) ? (a) : (b) ) |
#define | max(a, b) ( ((a) > (b)) ? (a) : (b) ) |
#define | VECCOPY(a, b) { b[0] = a[0]; b[1] = a[1]; b[2] = a[2]; } |
#define | VECSUB(a, b, c) { c[0]=a[0]-b[0]; c[1]=a[1]-b[1]; c[2]=a[2]-b[2];} |
#define | VECSUM(a, b, c) { c[0]=a[0]+b[0]; c[1]=a[1]+b[1]; c[2]=a[2]+b[2];} |
#define | VECSCALE(a, b, c) { c[0]=(a)*b[0]; c[1]=(a)*b[1]; c[2]=(a)*b[2];} |
#define | DOT(a, b) ( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) ) |
#define | CROSS(v1, v2, r) |
#define | POINT2VECTOR(p, v) |
#define | VECTOR2POINT(v, p) |
#define | NO 0 |
#define | YES 1 |
#define | FAIL -1 |
#define | OK 1 |
#define | TOL 200000.0 |
#define | TOL1 0.0005 |
#define | TOL2 0.9995 |
#define | TOL3 -1.00000 |
#define | TOL8 1.00000 |
#define | TOL5 -0.001 |
#define | TOL6 1.001 |
#define | TOL9 100.0 |
#define | TOLA 100.0 |
#define | TOLB 10.0 |
#define | TOLC 100.0 |
Typedefs |
typedef struct Boolean_WORKEDGE | workedge |
| Internal structure used by Boolean modelling action (DLL).
|
typedef struct Boolean_WORKFACE | workface |
| Internal structure used by Boolean modelling action (DLL).
|
typedef struct Boolean_TOOLEDGE | tooledge |
| Internal structure used by Boolean modelling action (DLL).
|
typedef struct Boolean_TOOLFACE | toolface |
| Internal structure used by Boolean modelling action (DLL).
|
typedef struct Boolean_VTXADJ | vtxadj |
| Internal structure used by Boolean modelling action (DLL).
|
Define Documentation
#define min |
( |
a, |
|
|
b |
|
) |
( ((a) < (b)) ? (a) : (b) ) |
#define max |
( |
a, |
|
|
b |
|
) |
( ((a) > (b)) ? (a) : (b) ) |
#define VECCOPY |
( |
a, |
|
|
b |
|
) |
{ b[0] = a[0]; b[1] = a[1]; b[2] = a[2]; } |
#define VECSUB |
( |
a, |
|
|
b, |
|
|
c |
|
) |
{ c[0]=a[0]-b[0]; c[1]=a[1]-b[1]; c[2]=a[2]-b[2];} |
#define VECSUM |
( |
a, |
|
|
b, |
|
|
c |
|
) |
{ c[0]=a[0]+b[0]; c[1]=a[1]+b[1]; c[2]=a[2]+b[2];} |
#define VECSCALE |
( |
a, |
|
|
b, |
|
|
c |
|
) |
{ c[0]=(a)*b[0]; c[1]=(a)*b[1]; c[2]=(a)*b[2];} |
#define DOT |
( |
a, |
|
|
b |
|
) |
( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) ) |
#define CROSS |
( |
v1, |
|
|
v2, |
|
|
r |
|
) |
|
Value:
{ \
r[0] = (v1[1]*v2[2]) - (v2[1]*v1[2]); \
r[1] = (v1[2]*v2[0]) - (v1[0]*v2[2]); \
r[2] = (v1[0]*v2[1]) - (v2[0]*v1[1]); \
}
Definition at line 75 of file BOOLEAN.H.
#define POINT2VECTOR |
( |
p, |
|
|
v |
|
) |
|
#define VECTOR2POINT |
( |
v, |
|
|
p |
|
) |
|
Value:
p[0]=(long)v[0]; p[1]=(long)v[1]; \
p[2]=(long)v[2];
Definition at line 82 of file BOOLEAN.H.