- added DerivedMesh.drawUVEdges function & implementations
[blender.git] / source / blender / blenkernel / intern / CCGSubSurf.c
index bec741c64e6dee206b1b1bc27401880bb1dc91fb..2ed7d60e57e370962d0decfb4c86f8c2b9c400d0 100644 (file)
@@ -2129,6 +2129,15 @@ CCGEdge *ccgSubSurf_getFaceEdge(CCGSubSurf *ss, CCGFace *f, int index) {
                return FACE_getEdges(f)[index];
        }
 }
+int ccgSubSurf_getFaceEdgeIndex(CCGSubSurf *ss, CCGFace *f, CCGEdge *e) {
+       int i;
+
+       for (i=0; i<f->numVerts; i++)
+               if (FACE_getEdges(f)[i]==e)
+                       return i;
+
+       return -1;
+}
 void *ccgSubSurf_getFaceCenterData(CCGSubSurf *ss, CCGFace *f) {
        return FACE_getCenterData(f);
 }