Blender Git Loki

Git Commits -> Revision 9c18ade

Revision 9c18ade by Campbell Barton (master)
March 3, 2012, 12:35 (GMT)
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.

Commit Details:

Full Hash: 9c18ade898fb613321bf2eb73232a74de7186aab
SVN Revision: 44618
Parent Commit: 9d49fa0
Lines Changed: +143, -15

5 Modified Paths:

/source/blender/bmesh/intern/bmesh_mods.c (+41, -8) (Diff)
/source/blender/bmesh/intern/bmesh_mods.h (+1, -0) (Diff)
/source/blender/bmesh/intern/bmesh_queries.c (+70, -1) (Diff)
/source/blender/bmesh/intern/bmesh_queries.h (+2, -0) (Diff)
/source/blender/bmesh/operators/bmo_utils.c (+29, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021