diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-04-13 14:25:02 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-04-13 14:25:54 +0400 |
commit | 0b7f5813973c515b84cd7c18ef6d7d1e59374237 (patch) | |
tree | b3023962b59abf0e594a977f88661682d9e8e8b7 /source/blender/bmesh/bmesh_class.h | |
parent | 18e4224142261cd8a1086c5872efb406b82f8330 (diff) |
Split Normals I (2/5): Add basic BMesh support of split normals.
* Merely a re-implementation of core split algorithm for BMesh, taking advantage of topological data available.
* This code needs valid loop indices, so added BM_LOOP support to BM_mesh_elem_index_ensure() & co.
Reviewers: campbellbarton
Reviewed By: campbellbarton
CC: brecht
Differential Revision: https://developer.blender.org/D366
Diffstat (limited to 'source/blender/bmesh/bmesh_class.h')
-rw-r--r-- | source/blender/bmesh/bmesh_class.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/bmesh/bmesh_class.h b/source/blender/bmesh/bmesh_class.h index 01e4c911d19..ea7505bcba4 100644 --- a/source/blender/bmesh/bmesh_class.h +++ b/source/blender/bmesh/bmesh_class.h @@ -66,7 +66,7 @@ typedef struct BMHeader { int index; /* notes: * - Use BM_elem_index_get/set macros for index * - Uninitialized to -1 so we can easily tell its not set. - * - Used for edge/vert/face, check BMesh.elem_index_dirty for valid index values, + * - Used for edge/vert/face/loop, check BMesh.elem_index_dirty for valid index values, * this is abused by various tools which set it dirty. * - For loops this is used for sorting during tessellation. */ @@ -188,9 +188,8 @@ typedef struct BMesh { int totvertsel, totedgesel, totfacesel; /* flag index arrays as being dirty so we can check if they are clean and - * avoid looping over the entire vert/edge/face array in those cases. - * valid flags are - BM_VERT | BM_EDGE | BM_FACE. - * BM_LOOP isn't handled so far. */ + * avoid looping over the entire vert/edge/face/loop array in those cases. + * valid flags are - BM_VERT | BM_EDGE | BM_FACE | BM_LOOP. */ char elem_index_dirty; /* flag array table as being dirty so we know when its safe to use it, |