moved the boxpacker from PyAPI's Geometry to BLI_boxpack2d

made LSCM UV Unwrapper use boxpack2d
This commit is contained in:
Campbell Barton
2007-03-21 17:06:02 +00:00
parent 145f474c5f
commit ca94d97049
5 changed files with 503 additions and 532 deletions

View File

@@ -39,37 +39,4 @@
PyObject *Geometry_Init( void );
/* Box Packer */
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;
typedef struct boxPack {
float x;
float y;
float w;
float h;
int index;
/* Verts this box uses
* (BL,TR,TL,BR) / 0,1,2,3 */
boxVert *v[4];
} boxPack;
#endif /* EXPP_Geometry_H */