SplitPat.h File Reference

#include "Vector.h"
#include "Vector2.h"

Include dependency graph for SplitPat.h:

Go to the source code of this file.

Classes

class  SplitPatch
class  PatchSplitter

Defines

#define __SPLITPAT_H
#define FLAT0   0x00000001
#define FLAT1   0x00000002
#define FLAT2   0x00000004
#define FLAT3   0x00000008
#define NOTFIRSTVERTICAL   0x00000010
#define NOTFIRSTHORIZONTAL   0x00000020
#define NEEDSFLAT0   0x00000040
#define NEEDSFLAT1   0x00000080
#define NEEDSFLAT2   0x00000100
#define NEEDSFLAT3   0x00000200
#define FIRSTFLATTESTVERTICAL   0x00000400
#define FIRSTFLATTESTHORIZONTAL   0x00000800
#define IsFlat0(a)   (a&FLAT0)
#define IsFlat1(a)   (a&FLAT1)
#define IsFlat2(a)   (a&FLAT2)
#define IsFlat3(a)   (a&FLAT3)
#define OnFlat0(a)   (a|=FLAT0)
#define OnFlat1(a)   (a|=FLAT1)
#define OnFlat2(a)   (a|=FLAT2)
#define OnFlat3(a)   (a|=FLAT3)
#define IsNeedsFlat0(a)   (a&NEEDSFLAT0)
#define IsNeedsFlat1(a)   (a&NEEDSFLAT1)
#define IsNeedsFlat2(a)   (a&NEEDSFLAT2)
#define IsNeedsFlat3(a)   (a&NEEDSFLAT3)
#define OnNeedsFlat0(a)   (a|=NEEDSFLAT0)
#define OnNeedsFlat1(a)   (a|=NEEDSFLAT1)
#define OnNeedsFlat2(a)   (a|=NEEDSFLAT2)
#define OnNeedsFlat3(a)   (a|=NEEDSFLAT3)
#define OffNeedsFlat0(a)   (a&=~NEEDSFLAT0)
#define OffNeedsFlat1(a)   (a&=~NEEDSFLAT1)
#define OffNeedsFlat2(a)   (a&=~NEEDSFLAT2)
#define OffNeedsFlat3(a)   (a&=~NEEDSFLAT3)

Functions

void CalcTangent (Vector &p0, Vector &p1, Vector &p2, Vector &p3, Vector &t)
void MakeFlat (Vector &p0, Vector &p1, Vector &p2, Vector &p3)
void MakeFlat5 (Vector &p0, Vector &p1, Vector &p2, Vector &p3, Vector &p4, Vector &p5, Vector &p6, Vector &p7)


Define Documentation

#define __SPLITPAT_H
 

Definition at line 3 of file SplitPat.h.

#define FIRSTFLATTESTHORIZONTAL   0x00000800
 

Definition at line 26 of file SplitPat.h.

#define FIRSTFLATTESTVERTICAL   0x00000400
 

Definition at line 25 of file SplitPat.h.

#define FLAT0   0x00000001
 

Definition at line 15 of file SplitPat.h.

#define FLAT1   0x00000002
 

Definition at line 16 of file SplitPat.h.

#define FLAT2   0x00000004
 

Definition at line 17 of file SplitPat.h.

#define FLAT3   0x00000008
 

Definition at line 18 of file SplitPat.h.

#define IsFlat0  )     (a&FLAT0)
 

Definition at line 28 of file SplitPat.h.

#define IsFlat1  )     (a&FLAT1)
 

Definition at line 29 of file SplitPat.h.

#define IsFlat2  )     (a&FLAT2)
 

Definition at line 30 of file SplitPat.h.

#define IsFlat3  )     (a&FLAT3)
 

Definition at line 31 of file SplitPat.h.

#define IsNeedsFlat0  )     (a&NEEDSFLAT0)
 

Definition at line 38 of file SplitPat.h.

#define IsNeedsFlat1  )     (a&NEEDSFLAT1)
 

Definition at line 39 of file SplitPat.h.

#define IsNeedsFlat2  )     (a&NEEDSFLAT2)
 

Definition at line 40 of file SplitPat.h.

#define IsNeedsFlat3  )     (a&NEEDSFLAT3)
 

Definition at line 41 of file SplitPat.h.

#define NEEDSFLAT0   0x00000040
 

Definition at line 21 of file SplitPat.h.

#define NEEDSFLAT1   0x00000080
 

Definition at line 22 of file SplitPat.h.

#define NEEDSFLAT2   0x00000100
 

Definition at line 23 of file SplitPat.h.

#define NEEDSFLAT3   0x00000200
 

Definition at line 24 of file SplitPat.h.

#define NOTFIRSTHORIZONTAL   0x00000020
 

Definition at line 20 of file SplitPat.h.

#define NOTFIRSTVERTICAL   0x00000010
 

Definition at line 19 of file SplitPat.h.

#define OffNeedsFlat0  )     (a&=~NEEDSFLAT0)
 

Definition at line 48 of file SplitPat.h.

#define OffNeedsFlat1  )     (a&=~NEEDSFLAT1)
 

Definition at line 49 of file SplitPat.h.

#define OffNeedsFlat2  )     (a&=~NEEDSFLAT2)
 

Definition at line 50 of file SplitPat.h.

#define OffNeedsFlat3  )     (a&=~NEEDSFLAT3)
 

Definition at line 51 of file SplitPat.h.

#define OnFlat0  )     (a|=FLAT0)
 

Definition at line 33 of file SplitPat.h.

#define OnFlat1  )     (a|=FLAT1)
 

Definition at line 34 of file SplitPat.h.

#define OnFlat2  )     (a|=FLAT2)
 

Definition at line 35 of file SplitPat.h.

#define OnFlat3  )     (a|=FLAT3)
 

Definition at line 36 of file SplitPat.h.

#define OnNeedsFlat0  )     (a|=NEEDSFLAT0)
 

Definition at line 43 of file SplitPat.h.

#define OnNeedsFlat1  )     (a|=NEEDSFLAT1)
 

Definition at line 44 of file SplitPat.h.

#define OnNeedsFlat2  )     (a|=NEEDSFLAT2)
 

Definition at line 45 of file SplitPat.h.

#define OnNeedsFlat3  )     (a|=NEEDSFLAT3)
 

Definition at line 46 of file SplitPat.h.


Function Documentation

void CalcTangent Vector p0,
Vector p1,
Vector p2,
Vector p3,
Vector t
[inline]
 

Definition at line 176 of file SplitPat.h.

void MakeFlat Vector p0,
Vector p1,
Vector p2,
Vector p3
[inline]
 

Definition at line 224 of file SplitPat.h.

References Vector::Norm().

Here is the call graph for this function:

void MakeFlat5 Vector p0,
Vector p1,
Vector p2,
Vector p3,
Vector p4,
Vector p5,
Vector p6,
Vector p7
[inline]
 

Definition at line 243 of file SplitPat.h.

References Vector::Norm().

Here is the call graph for this function:


This A:M SDK v12.0 documentation is maintained by Hash Inc. Please address any comments concerning this documentation to AMReports. If you have any information, knowledge, or documentation to share with the A:M developer community, please post them on the Hash SDK forum.

Generated on Thu Oct 27 11:46:50 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001