diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-02 14:06:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-02 14:06:50 +0300 |
commit | a7ceeafd71534b21163b189a42af07358672d1c7 (patch) | |
tree | 4e240e2df81c8048a9a9081d6634a303683764a4 /source/blender/blenlib/intern/boxpack2d.c | |
parent | 4119132580d8cf172e2b2ced86a7607d117b43c2 (diff) |
- correct typos in comments.
- move boxpack struct out of the public header.
Diffstat (limited to 'source/blender/blenlib/intern/boxpack2d.c')
-rw-r--r-- | source/blender/blenlib/intern/boxpack2d.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/boxpack2d.c b/source/blender/blenlib/intern/boxpack2d.c index 1c910dbb519..7e93765ca72 100644 --- a/source/blender/blenlib/intern/boxpack2d.c +++ b/source/blender/blenlib/intern/boxpack2d.c @@ -30,6 +30,23 @@ * * The defined Below are for internal use only */ +typedef struct boxVert { + float x; + float y; + short free; + + struct boxPack *trb; /* top right box */ + struct boxPack *blb; /* bottom left box */ + struct boxPack *brb; /* bottom right box */ + struct boxPack *tlb; /* top left box */ + + /* Store last intersecting boxes here + * speedup intersection testing */ + struct boxPack *isect_cache[4]; + + int index; +} boxVert; + /* free vert flags */ #define eps 0.0000001f #define BLF 1 |