Initial commit
This commit is contained in:
24
Torque/SDK/lib/maxsdk31/vedge.h
Normal file
24
Torque/SDK/lib/maxsdk31/vedge.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef VEDGE_H_DEFINED
|
||||
#define VEDGE_H_DEFINED
|
||||
|
||||
class VEdge {
|
||||
DWORD f[2];
|
||||
public:
|
||||
void SetFace(int i, DWORD n) { f[i] =(f[i]&0xc0000000)|n;}
|
||||
void SetWhichSide(int i, int s) { f[i] =(f[i]&0x3FFFFFFF)|((s&3)<<30); }
|
||||
DWORD GetFace(int i){ return f[i]&0x3fffffff; }
|
||||
int GetWhichSide(int i) { return (f[i]>>30)&3; }
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
unsigned short flags;
|
||||
DWORD v[2]; /* indices of two vertices defining edge */
|
||||
DWORD f[2]; /* indices of two neighboring faces */
|
||||
} Edge;
|
||||
|
||||
|
||||
// Moved from VEDGE.CPP -TH
|
||||
#define UNDEF 0xFFFFFFFF
|
||||
#define UNDEF_FACE 0x3FFFFFFF
|
||||
|
||||
#endif // VEDGE_H_DEFINED
|
||||
Reference in New Issue
Block a user