diff options
Diffstat (limited to 'source/blender/blenkernel/intern/cdderivedmesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/cdderivedmesh.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/cdderivedmesh.c b/source/blender/blenkernel/intern/cdderivedmesh.c index d5ac277c798..4f0c9e11309 100644 --- a/source/blender/blenkernel/intern/cdderivedmesh.c +++ b/source/blender/blenkernel/intern/cdderivedmesh.c @@ -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; |