diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-13 09:46:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-13 09:46:51 +0400 |
commit | c85e66e7fe6d12c8a1b33dec703e9bb342b9953b (patch) | |
tree | 6ac5f210daf8c3a2c0700c366fb9360a0029ae8a /source/blender/blenlib/BLI_scanfill.h | |
parent | fcb06097a543db34d0eeb4a0c422250dedce4138 (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.h | 6 |
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; |