From c85e66e7fe6d12c8a1b33dec703e9bb342b9953b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 13 Feb 2014 16:46:51 +1100 Subject: Scanfill: add user-flags for edges and verts, useful elsewhere. --- source/blender/blenlib/BLI_scanfill.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/blenlib/BLI_scanfill.h') 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; -- cgit v1.2.3