Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-02-13 09:46:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-13 09:46:51 +0400
commitc85e66e7fe6d12c8a1b33dec703e9bb342b9953b (patch)
tree6ac5f210daf8c3a2c0700c366fb9360a0029ae8a /source/blender/blenlib/BLI_scanfill.h
parentfcb06097a543db34d0eeb4a0c422250dedce4138 (diff)
Scanfill: add user-flags for edges and verts, useful elsewhere.
Diffstat (limited to 'source/blender/blenlib/BLI_scanfill.h')
-rw-r--r--source/blender/blenlib/BLI_scanfill.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_scanfill.h b/source/blender/blenlib/BLI_scanfill.h
index 8e5445b6af2..c564fce2abe 100644
--- a/source/blender/blenlib/BLI_scanfill.h
+++ b/source/blender/blenlib/BLI_scanfill.h
@@ -69,14 +69,16 @@ typedef struct ScanFillVert {
unsigned int keyindex; /* index, caller can use how it likes to match the scanfill result with own data */
unsigned short poly_nr;
unsigned char edge_tot; /* number of edges using this vertex */
- unsigned char f;
+ unsigned int f : 4; /* vert status */
+ unsigned int user_flag : 4; /* flag callers can use as they like */
} ScanFillVert;
typedef struct ScanFillEdge {
struct ScanFillEdge *next, *prev;
struct ScanFillVert *v1, *v2;
unsigned short poly_nr;
- unsigned char f;
+ unsigned int f : 4; /* edge status */
+ unsigned int user_flag : 4; /* flag callers can use as they like */
union {
unsigned char c;
} tmp;