diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-03 16:35:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-03 16:35:37 +0400 |
commit | 9c18ade898fb613321bf2eb73232a74de7186aab (patch) | |
tree | 802da6fd569ba897b9649659e4dab5f6da004f46 /source/blender/bmesh/intern/bmesh_mods.h | |
parent | 9d49fa0e6373d78c794e8472ed3f527392dfabcd (diff) |
bmesh edge rotate
* improve check to see if edge rotate can be done,
was checking if both edges verts have an edge count of 2, which is really a meaningless test since the verts can have stray edges connected and the result wont work right.
instead check if the next verts in both faces share a vertex.
* add utility function BM_face_other_vert_loop() which gets the next loop in a face.
* add convenience function BM_edge_face_pair() which returns 2 faces for edges that have exactly 2 face users. (saves ugly e->l->radial_next ... in code) and is more readable.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_mods.h')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_mods.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_mods.h b/source/blender/bmesh/intern/bmesh_mods.h index 6d4b1333549..d530e9d8666 100644 --- a/source/blender/bmesh/intern/bmesh_mods.h +++ b/source/blender/bmesh/intern/bmesh_mods.h @@ -53,6 +53,7 @@ BMVert *BM_edge_split_n(BMesh *bm, BMEdge *e, int numcuts); int BM_face_validate(BMesh *bm, BMFace *face, FILE *err); +int BM_edge_rotate_check(BMesh *UNUSED(bm), BMEdge *e); BMEdge *BM_edge_rotate(BMesh *bm, BMEdge *e, int ccw); BMVert *BM_vert_rip(BMesh *bm, BMFace *sf, BMVert *sv); |