Ignore:
Timestamp:
08/19/10 09:38:48 (15 years ago)
Author:
Mathieu Morlighem
Message:

renamed some fields and got rid of curve->next

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Bamg/Geometry.cpp

    r5400 r5401  
    151151                                edges[i].tg[0]=zerovector;
    152152                                edges[i].tg[1]=zerovector;
    153                                 edges[i].AdjVertexNumber[0] = edges[i].AdjVertexNumber[1] = -1;
     153                                edges[i].AdjVertexIndex[0] = edges[i].AdjVertexIndex[1] = -1;
    154154                                edges[i].Adj[0] = edges[i].Adj[1] = NULL;
    155155                                edges[i].type = 0;
     
    697697
    698698                                edges[i1].Adj[j1] = edges + i;
    699                                 edges[i1].AdjVertexNumber[j1] = j;
     699                                edges[i1].AdjVertexIndex[j1] = j;
    700700                        }
    701701                }
     
    719719                                                 * previous and next vertices connected to current vertex
    720720                                                 * normed by the edge length*/
    721                                                 tg = edges[i].v[1-j]->r - edges[i].Adj[j]->v[1-edges[i].AdjVertexNumber[j]]->r;
     721                                                tg = edges[i].v[1-j]->r - edges[i].Adj[j]->v[1-edges[i].AdjVertexIndex[j]]->r;
    722722                                                ltg= Norme2(tg);
    723723                                                tg = tg *(lAB/ltg);
     
    786786                                                                //else: go to next edge (adjacent)
    787787                                                                else{
    788                                                                         k0 = e->AdjVertexNumber[k1];//  vertex in next edge
     788                                                                        k0 = e->AdjVertexIndex[k1];//  vertex in next edge
    789789                                                                        e  = e->Adj[k1]; // next edge
    790790                                                                }
     
    873873                        ge[--bge] =eg0 = eg0->Adj[direction0];
    874874                        ISSMASSERT(bge>=0 && bge<=mxe);
    875                         direction0 = 1-( directionge[bge] = tmpge->AdjVertexNumber[direction0]);
     875                        direction0 = 1-( directionge[bge] = tmpge->AdjVertexIndex[direction0]);
    876876                }
    877877                while (eg1 != (GeometricalEdge*) vg1  &&  (*eg1)(direction1) != (GeometricalVertex*) vg1) {
     
    889889                        GeometricalEdge* tmpge = eg1;
    890890                        ge[++tge] =eg1 = eg1->Adj[direction1];
    891                         directionge[tge]= direction1 = 1-tmpge->AdjVertexNumber[direction1];
     891                        directionge[tge]= direction1 = 1-tmpge->AdjVertexIndex[direction1];
    892892                        ISSMASSERT(tge>=0 && tge<=mxe);
    893893                }
Note: See TracChangeset for help on using the changeset viewer.