no functional changes, use hole rather then dutch 'gat' for bevel lists and made some comments English.

This commit is contained in:
Campbell Barton 2009-09-07 07:42:12 +00:00
parent 7064f6c5d8
commit 183c8e0a0a
5 changed files with 13 additions and 13 deletions

@ -1783,14 +1783,14 @@ void makeBevelList(Object *ob)
bl= blnext;
}
/* STEP 3: COUNT POLYS TELLEN AND AUTOHOLE */
/* STEP 3: POLYS COUNT AND AUTOHOLE */
bl= cu->bev.first;
poly= 0;
while(bl) {
if(bl->nr && bl->poly>=0) {
poly++;
bl->poly= poly;
bl->gat= 0; /* 'gat' is dutch for hole */
bl->hole= 0;
}
bl= bl->next;
}
@ -1842,7 +1842,7 @@ void makeBevelList(Object *ob)
sd1= sortdata+ (a-1);
for(b=a-1; b>=0; b--, sd1--) { /* all polys to the left */
if(bevelinside(sd1->bl, bl)) {
bl->gat= 1- sd1->bl->gat;
bl->hole= 1- sd1->bl->hole;
break;
}
}
@ -1852,7 +1852,7 @@ void makeBevelList(Object *ob)
if((cu->flag & CU_3D)==0) {
sd= sortdata;
for(a=0; a<poly; a++, sd++) {
if(sd->bl->gat==sd->dir) {
if(sd->bl->hole==sd->dir) {
bl= sd->bl;
bevp1= (BevPoint *)(bl+1);
bevp2= bevp1+ (bl->nr-1);
@ -2033,7 +2033,7 @@ void makeBevelList(Object *ob)
}
QUATCOPY(quat_prev, quat); /* quat_prev can't have the tilt applied */
VECCOPY(vec_prev, vec);
AxisAngleToQuat(q, vec, bevp1->alfa);
QuatMul(quat, q, quat);
QuatToMat3(quat, bevp1->mat);

@ -204,12 +204,12 @@ static void anim5decode(struct ImBuf * ibuf, uchar * dlta) {
int *ofspoint;
uchar **planes;
/* samenstelling delta:
lijst met ofsets voor delta's per bitplane (ofspoint)
per kolom in delta (point)
aantal handelingen (noops)
/* composition delta:
list with ofsets for delta' s by bitplane (ofspoint)
by column in delta (point)
number of operations (noops)
code
bijbehorende data
associated data
...
...
*/

@ -61,7 +61,7 @@ struct Oops *add_test_oops(void *id); /* incl links */
void add_texture_oops(struct Material *ma);
void build_oops(void);
struct Oops *find_oops(ID *id);
void free_oops(struct Oops *oops); /* ook oops zelf */
void free_oops(struct Oops *oops); /* also oops themselves */
void free_oopspace(struct SpaceOops *so);
void new_oops_location(struct Oops *);
int oops_test_overlap(struct Oops *test);

@ -61,7 +61,7 @@ typedef struct Path {
typedef struct BevList {
struct BevList *next, *prev;
int nr, flag;
short poly, gat;
short poly, hole;
} BevList;
/* These two Lines with # tell makesdna this struct can be excluded. */

@ -25,7 +25,7 @@
* Contributor(s): none yet.
*
* ***** END GPL LICENSE BLOCK *****
* i.t.t. wat de naam doet vermoeden: ook algemene lattice (calc) functies
* what the name suggests: also general lattice (calc) functions
*/
#include <stdlib.h>