Code cleanup for BMesh CDDM access functions, no functional changes.
authorNicholas Bishop <nicholasbishop@gmail.com>
Tue, 7 Feb 2012 01:13:04 +0000 (01:13 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Tue, 7 Feb 2012 01:13:04 +0000 (01:13 +0000)
Renamed CDDM_get_face() to CDDM_get_poly() to match array access
functions. Added function definitions for CDDM_get_loop() and
CDDM_get_poly().

source/blender/blenkernel/BKE_cdderivedmesh.h
source/blender/blenkernel/intern/cdderivedmesh.c

index 3f421331f0a2718750a591e067bd047f7be09c80..42e1aa8e083ddb9551894f4892ad3c947346bbb6 100644 (file)
@@ -135,7 +135,7 @@ struct MVert *CDDM_get_vert(struct DerivedMesh *dm, int index);
 struct MEdge *CDDM_get_edge(struct DerivedMesh *dm, int index);
 struct MFace *CDDM_get_tessface(struct DerivedMesh *dm, int index);
 struct MLoop *CDDM_get_loop(struct DerivedMesh *dm, int index);
-struct MPoly *CDDM_get_face(struct DerivedMesh *dm, int index);
+struct MPoly *CDDM_get_poly(struct DerivedMesh *dm, int index);
 
 /* vertex/edge/face array access functions - return the array holding the
  * desired data
index d5ac277c79843c9273bf73a006cac1642873a97a..4f0c9e113098689336e581fdfd9510e5e413c597 100644 (file)
@@ -2717,6 +2717,8 @@ void CDDM_lower_num_polys(DerivedMesh *dm, int numPolys)
        dm->numPolyData = numPolys;
 }
 
+/* mesh element access functions */
+
 MVert *CDDM_get_vert(DerivedMesh *dm, int index)
 {
        return &((CDDerivedMesh*)dm)->mvert[index];
@@ -2732,6 +2734,18 @@ MFace *CDDM_get_tessface(DerivedMesh *dm, int index)
        return &((CDDerivedMesh*)dm)->mface[index];
 }
 
+MLoop *CDDM_get_loop(DerivedMesh *dm, int index)
+{
+       return &((CDDerivedMesh*)dm)->mloop[index];
+}
+
+MPoly *CDDM_get_poly(DerivedMesh *dm, int index)
+{
+       return &((CDDerivedMesh*)dm)->mpoly[index];
+}
+
+/* array access functions */
+
 MVert *CDDM_get_verts(DerivedMesh *dm)
 {
        return ((CDDerivedMesh*)dm)->mvert;