Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(528)

Unified Diff: source/blender/blenkernel/intern/mesh.c

Issue 6220055: Skin modifier (Closed) Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Updated with suggested changes Created 12 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: source/blender/blenkernel/intern/mesh.c
===================================================================
--- source/blender/blenkernel/intern/mesh.c (revision 46855)
+++ source/blender/blenkernel/intern/mesh.c (working copy)
@@ -2996,6 +2996,18 @@ int poly_get_adj_loops_from_vert(unsigned adj_r[3], const MPoly *poly,
return corner;
}
+/* Return the index of the edge vert that is not equal to 'v'. If
+ * neither edge vertex is equal to 'v', returns -1. */
+int BKE_mesh_edge_other_vert(const MEdge *e, int v)
+{
+ if (e->v1 == v)
+ return e->v2;
+ else if (e->v2 == v)
+ return e->v1;
+ else
+ return -1;
+}
+
/* update the hide flag for edges and faces from the corresponding
* flag in verts */
void BKE_mesh_flush_hidden_from_verts(const MVert *mvert,

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b