Revision: 40154
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40154
Author:   campbellbarton
Date:     2011-09-12 05:51:35 +0000 (Mon, 12 Sep 2011)
Log Message:
-----------
replace VECCOPY with copy_v3_v3

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/blenkernel/intern/editderivedbmesh.c
    branches/bmesh/blender/source/blender/bmesh/intern/bmesh_polygon.c
    branches/bmesh/blender/source/blender/editors/mesh/bmesh_tools.c

Modified: 
branches/bmesh/blender/source/blender/blenkernel/intern/editderivedbmesh.c
===================================================================
--- branches/bmesh/blender/source/blender/blenkernel/intern/editderivedbmesh.c  
2011-09-12 05:51:04 UTC (rev 40153)
+++ branches/bmesh/blender/source/blender/blenkernel/intern/editderivedbmesh.c  
2011-09-12 05:51:35 UTC (rev 40154)
@@ -1187,7 +1187,7 @@
 
 static int bmvert_to_mvert(BMesh *bm, BMVert *ev, MVert *vert_r)
 {
-       VECCOPY(vert_r->co, ev->co);
+       copy_v3_v3(vert_r->co, ev->co);
 
        vert_r->no[0] = (short)(ev->no[0] * 32767.0f);
        vert_r->no[1] = (short)(ev->no[1] * 32767.0f);
@@ -1278,7 +1278,7 @@
 
        ev = BMIter_New(&iter, bm, BM_VERTS_OF_MESH, NULL);
        for( ; ev; ev = BMIter_Step(&iter), ++vert_r) {
-               VECCOPY(vert_r->co, ev->co);
+               copy_v3_v3(vert_r->co, ev->co);
 
                vert_r->no[0] = (short) (ev->no[0] * 32767.0);
                vert_r->no[1] = (short) (ev->no[1] * 32767.0);
@@ -1638,7 +1638,7 @@
                        /* following Mesh convention; we use vertex coordinate 
itself
                         * for normal in this case */
                        if (normalize_v3(no)==0.0) {
-                               VECCOPY(no, vertexCos[i]);
+                               copy_v3_v3(no, vertexCos[i]);
                                normalize_v3(no);
                        }
                }

Modified: branches/bmesh/blender/source/blender/bmesh/intern/bmesh_polygon.c
===================================================================
--- branches/bmesh/blender/source/blender/bmesh/intern/bmesh_polygon.c  
2011-09-12 05:51:04 UTC (rev 40153)
+++ branches/bmesh/blender/source/blender/bmesh/intern/bmesh_polygon.c  
2011-09-12 05:51:35 UTC (rev 40154)
@@ -101,9 +101,9 @@
        verts[0][2] += 0.0001f;
 
        for(i = 0; i < nverts; i++){
-               VECCOPY(u, verts[i]);
-               VECCOPY(v, verts[(i+1) % nverts]);
-               VECCOPY(w, verts[(i+2) % nverts]);
+               copy_v3_v3(u, verts[i]);
+               copy_v3_v3(v, verts[(i+1) % nverts]);
+               copy_v3_v3(w, verts[(i+2) % nverts]);
                
 #if 0
                VECSUB(v1, w, v);
@@ -221,7 +221,7 @@
 
        i = 0;
        BM_ITER(l, &iter, NULL, BM_LOOPS_OF_FACE, f) {
-               VECCOPY(verts[i], l->v->co);
+               copy_v3_v3(verts[i], l->v->co);
                i++;
        }
 
@@ -301,7 +301,7 @@
        
        for(i = 0; i < nverts; i++){
                v1 = verts[i];
-               VECCOPY(temp, v1);
+               copy_v3_v3(temp, v1);
                mag = 0.0;
                mag += (temp[0] * avgn[0]);
                mag += (temp[1] * avgn[1]);
@@ -408,7 +408,7 @@
        if (f->len < 3) return;
        
        BM_ITER(l, &iter, bm, BM_LOOPS_OF_FACE, f) {
-               VECCOPY(proj[i], l->v->co);
+               copy_v3_v3(proj[i], l->v->co);
                i += 1;
        }
 
@@ -477,7 +477,7 @@
        if(f->len > 4) {
                i = 0;
                BM_ITER(l, &iter, bm, BM_LOOPS_OF_FACE, f) {
-                       VECCOPY(projectverts[i], l->v->co);
+                       copy_v3_v3(projectverts[i], l->v->co);
                        l = l->next;
                        i += 1;
                }
@@ -758,7 +758,7 @@
        i = 0;
        l = bm_firstfaceloop(f);
        do{
-               VECCOPY(projectverts[i], l->v->co);
+               copy_v3_v3(projectverts[i], l->v->co);
                BM_SetIndex(l->v, i);
                i++;
                l = (BMLoop*)(l->next);
@@ -786,7 +786,7 @@
                        f = BM_Split_Face(bm, l->f, ((BMLoop*)(l->prev))->v, 
                                          ((BMLoop*)(l->next))->v, 
                                          &newl, NULL);
-                       VECCOPY(f->no, l->f->no);
+                       copy_v3_v3(f->no, l->f->no);
 
                        if (!f) {
                                printf("yeek! triangulator failed to split 
face!\n");
@@ -861,19 +861,19 @@
        l = BMIter_New(&iter, bm, BM_LOOPS_OF_FACE, f);
        for (; l; l=BMIter_Step(&iter)) {
                BM_SetIndex(l, i);
-               VECCOPY(projverts[i], l->v->co);
+               copy_v3_v3(projverts[i], l->v->co);
                i++;
        }
        
        for (i=0; i<len; i++) {
-               VECCOPY(v1, loops[i][0]->v->co);
-               VECCOPY(v2, loops[i][1]->v->co);
+               copy_v3_v3(v1, loops[i][0]->v->co);
+               copy_v3_v3(v2, loops[i][1]->v->co);
 
                shrink_edgef(v1, v2, fac2);
                
-               VECCOPY(edgeverts[a], v1);
+               copy_v3_v3(edgeverts[a], v1);
                a++;
-               VECCOPY(edgeverts[a], v2);
+               copy_v3_v3(edgeverts[a], v2);
                a++;
        }
        
@@ -889,7 +889,7 @@
                out[2] = 0.0f;
                p1[2] = 0.0f;
 
-               //VECCOPY(l->v->co, p1);
+               //copy_v3_v3(l->v->co, p1);
 
                l = (BMLoop*) l->next;
        }
@@ -901,8 +901,8 @@
 
        /*do convexity test*/
        for (i=0; i<len; i++) {
-               VECCOPY(v2, edgeverts[i*2]);
-               VECCOPY(v3, edgeverts[i*2+1]);
+               copy_v3_v3(v2, edgeverts[i*2]);
+               copy_v3_v3(v3, edgeverts[i*2+1]);
 
                mid_v3_v3v3(mid, v2, v3);
                
@@ -911,8 +911,8 @@
                        p1 = projverts[j];
                        p2 = projverts[(j+1)%f->len];
                        
-                       VECCOPY(v1, p1);
-                       VECCOPY(v2, p2);
+                       copy_v3_v3(v1, p1);
+                       copy_v3_v3(v2, p2);
 
                        shrink_edgef(v1, v2, fac1);
 
@@ -929,8 +929,8 @@
                p1 = projverts[i];
                p2 = projverts[(i+1)%f->len];
                
-               VECCOPY(v1, p1);
-               VECCOPY(v2, p2);
+               copy_v3_v3(v1, p1);
+               copy_v3_v3(v2, p2);
 
                shrink_edgef(v1, v2, fac1);
 
@@ -958,8 +958,8 @@
                        p3 = edgeverts[j*2];
                        p4 = edgeverts[j*2+1];
 
-                       VECCOPY(v1, p1);
-                       VECCOPY(v2, p2);
+                       copy_v3_v3(v1, p1);
+                       copy_v3_v3(v2, p2);
 
                        shrink_edgef(v1, v2, fac1);
 

Modified: branches/bmesh/blender/source/blender/editors/mesh/bmesh_tools.c
===================================================================
--- branches/bmesh/blender/source/blender/editors/mesh/bmesh_tools.c    
2011-09-12 05:51:04 UTC (rev 40153)
+++ branches/bmesh/blender/source/blender/editors/mesh/bmesh_tools.c    
2011-09-12 05:51:35 UTC (rev 40154)
@@ -214,7 +214,7 @@
 
                /*set face vertex normals to face normal*/
                BM_ITER(l, &liter, em->bm, BM_LOOPS_OF_FACE, f) {
-                       VECCOPY(l->v->no, f->no);
+                       copy_v3_v3(l->v->no, f->no);
                }
        }
 
@@ -262,13 +262,13 @@
                        v3= addvertlist(em, efa->v3->co, efa->v3);
                        
                        v1->f1= v2->f1= v3->f1= 1;
-                       VECCOPY(v1->no, efa->n);
-                       VECCOPY(v2->no, efa->n);
-                       VECCOPY(v3->no, efa->n);
+                       copy_v3_v3(v1->no, efa->n);
+                       copy_v3_v3(v2->no, efa->n);
+                       copy_v3_v3(v3->no, efa->n);
                        if(efa->v4) {
                                v4= addvertlist(em, efa->v4->co, efa->v4); 
                                v4->f1= 1;
-                               VECCOPY(v4->no, efa->n);
+                               copy_v3_v3(v4->no, efa->n);
                        }
                        else v4= NULL;
                        
@@ -2241,7 +2241,7 @@
 
        if (target) {
                vco = give_cursor(scene, v3d);
-               VECCOPY(co, vco);
+               copy_v3_v3(co, vco);
                mul_m4_v3(ob->imat, co);
        }
        else {
@@ -2919,7 +2919,7 @@
 
                for (i=0; i<totshape; i++) {
                        co = CustomData_bmesh_get_n(&em->bm->vdata, 
eve->head.data, CD_SHAPEKEY, i);
-                       VECCOPY(co, eve->co);
+                       copy_v3_v3(co, eve->co);
                }
        }
 
@@ -2990,7 +2990,7 @@
                        continue;
 
                sco = CustomData_bmesh_get_n(&em->bm->vdata, eve->head.data, 
CD_SHAPEKEY, shape);
-               VECCOPY(co, sco);
+               copy_v3_v3(co, sco);
 
 
                if(add) {
@@ -3000,7 +3000,7 @@
                else
                        interp_v3_v3v3(eve->co, eve->co, co, blend);
                
-               VECCOPY(sco, co);
+               copy_v3_v3(sco, co);
        }
 
        DAG_id_tag_update(&me->id, OB_RECALC_DATA);
@@ -3437,7 +3437,7 @@
        gh = BLI_ghash_new(BLI_ghashutil_ptrhash, BLI_ghashutil_ptrcmp, "knife 
cut exec");
        for(bv=BMIter_New(&iter, bm, BM_VERTS_OF_MESH, 
NULL);bv;bv=BMIter_Step(&iter)){
                scr = MEM_mallocN(sizeof(float)*2, "Vertex Screen Coordinates");
-               VECCOPY(co, bv->co);
+               copy_v3_v3(co, bv->co);
                co[3]= 1.0;
                mul_m4_v4(obedit->obmat, co);
                project_float(ar, co, scr);
@@ -4255,7 +4255,7 @@
                if (!BM_GetIndex(v1) || BM_TestHFlag(v1, BM_HIDDEN))
                        continue;
 
-               VECCOPY(mirror_co, v1->co);
+               copy_v3_v3(mirror_co, v1->co);
                mirror_co[0] *= -1.0f;
 
                v2 = BMBVH_FindClosestVertTopo(tree, mirror_co, MIRROR_THRESH, 
v1);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to