From 0b7f5813973c515b84cd7c18ef6d7d1e59374237 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 13 Apr 2014 12:25:02 +0200 Subject: 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 --- source/blender/bmesh/bmesh_class.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source/blender/bmesh/bmesh_class.h') 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, -- cgit v1.2.3