[Bf-blender-cvs] [674bf2f] master: BMesh: add check for manifold loop

Campbell Barton noreply at git.blender.org
Wed May 11 21:56:44 CEST 2016


Commit: 674bf2fe58bc43cbb82098ec504960c008e8c9fe
Author: Campbell Barton
Date:   Thu May 12 04:37:36 2016 +1000
Branches: master
https://developer.blender.org/rB674bf2fe58bc43cbb82098ec504960c008e8c9fe

BMesh: add check for manifold loop

===================================================================

M	source/blender/bmesh/intern/bmesh_queries_inline.h

===================================================================

diff --git a/source/blender/bmesh/intern/bmesh_queries_inline.h b/source/blender/bmesh/intern/bmesh_queries_inline.h
index 430ba10..09cf39b 100644
--- a/source/blender/bmesh/intern/bmesh_queries_inline.h
+++ b/source/blender/bmesh/intern/bmesh_queries_inline.h
@@ -146,6 +146,13 @@ BLI_INLINE bool BM_loop_is_adjacent(const BMLoop *l_a, const BMLoop *l_b)
 	return (ELEM(l_b, l_a->next, l_a->prev));
 }
 
+ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
+BLI_INLINE bool BM_loop_is_manifold(const BMLoop *l)
+{
+	return ((l != l->radial_next) &&
+	        (l == l->radial_next->radial_next));
+}
+
 /**
  * Check if we have a single wire edge user.
  */




More information about the Bf-blender-cvs mailing list