Go to the source code of this file.
Defines | |
#define | DESELECTED 0 |
#define | SELECTED 1 |
#define | FAIL -1 |
#define | OK 1 |
#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) |
Typedefs | |
typedef struct tagVERTEXVERTEX | VERTEXVERTEX |
typedef struct tagFACEEXTRA | FACEEXTRA |
typedef struct tagVERTEXNORMAL | VERTEXNORMAL |
Functions | |
BOOL WINAPI | DllMain (HANDLE hDLL, DWORD dwReason, LPVOID lpReserved) |
BOOL | _Xmodeler (HWND parent_window, HWND info_window, X__STRUCTURE *lpevi) |
#define DESELECTED 0 |
Definition at line 26 of file SUBDIV.CPP.
#define SELECTED 1 |
Definition at line 27 of file SUBDIV.CPP.
#define FAIL -1 |
Definition at line 28 of file SUBDIV.CPP.
#define OK 1 |
Definition at line 29 of file SUBDIV.CPP.
#define VECCOPY | ( | a, | |||
b | ) | { b[0] = a[0]; b[1] = a[1]; b[2] = a[2]; } |
Definition at line 79 of file SUBDIV.CPP.
#define VECSUB | ( | a, | |||
b, | |||||
c | ) | { c[0]=a[0]-b[0]; c[1]=a[1]-b[1]; c[2]=a[2]-b[2];} |
Definition at line 80 of file SUBDIV.CPP.
#define VECSUM | ( | a, | |||
b, | |||||
c | ) | { c[0]=a[0]+b[0]; c[1]=a[1]+b[1]; c[2]=a[2]+b[2];} |
Definition at line 81 of file SUBDIV.CPP.
#define VECSCALE | ( | a, | |||
b, | |||||
c | ) | { c[0]=(a)*b[0]; c[1]=(a)*b[1]; c[2]=(a)*b[2];} |
Definition at line 82 of file SUBDIV.CPP.
#define DOT | ( | a, | |||
b | ) | ( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) ) |
Definition at line 83 of file SUBDIV.CPP.
#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 84 of file SUBDIV.CPP.
typedef struct tagVERTEXVERTEX VERTEXVERTEX |
typedef struct tagFACEEXTRA FACEEXTRA |
typedef struct tagVERTEXNORMAL VERTEXNORMAL |
BOOL WINAPI DllMain | ( | HANDLE | hDLL, | |
DWORD | dwReason, | |||
LPVOID | lpReserved | |||
) |
Definition at line 39 of file SUBDIV.CPP.
References DLL_PROCESS_ATTACH, DLL_PROCESS_DETACH, hThisInstance, and TRUE.
BOOL _Xmodeler | ( | HWND | parent_window, | |
HWND | info_window, | |||
X__STRUCTURE * | lpevi | |||
) |
Definition at line 61 of file SUBDIV.CPP.
References FALSE, NvertSelect, OrientateSelectedFaces, Subdivide(), and TRUE.