changed names to topology functions

This commit is contained in:
Nico Pietroni 2004-05-06 15:24:38 +00:00
parent 8d49b3d7f5
commit 62528938e1
1 changed files with 13 additions and 10 deletions
vcg/complex/trimesh/update

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.4 2004/03/31 14:44:43 cignoni
Added Vertex-Face Topology
Revision 1.3 2004/03/12 15:22:19 cignoni Revision 1.3 2004/03/12 15:22:19 cignoni
Written some documentation and added to the trimes doxygen module Written some documentation and added to the trimes doxygen module
@ -164,13 +167,13 @@ static void FaceFace(MeshType &m)
++q_next; ++q_next;
assert((*q_next).z>=0); assert((*q_next).z>=0);
assert((*q_next).z< 3); assert((*q_next).z< 3);
(*q).f->F(q->z) = (*q_next).f; // Collegamento in lista delle facce (*q).f->FFp(q->z) = (*q_next).f; // Collegamento in lista delle facce
(*q).f->Z(q->z) = (*q_next).z; (*q).f->FFi(q->z) = (*q_next).z;
} }
assert((*q).z>=0); assert((*q).z>=0);
assert((*q).z< 3); assert((*q).z< 3);
(*q).f->F((*q).z) = ps->f; (*q).f->FFp((*q).z) = ps->f;
(*q).f->Z((*q).z) = ps->z; (*q).f->FFi((*q).z) = ps->z;
ps = pe; ps = pe;
++ne; // Aggiorno il numero di edge ++ne; // Aggiorno il numero di edge
} }
@ -186,8 +189,8 @@ static void VertexFace(MeshType &m)
for(vi=m.vert.begin();vi!=m.vert.end();++vi) for(vi=m.vert.begin();vi!=m.vert.end();++vi)
{ {
(*vi).Fp() = 0; (*vi).VFb() = 0;
(*vi).Zp() = 0; (*vi).VFi() = 0;
} }
for(fi=m.face.begin();fi!=m.face.end();++fi) for(fi=m.face.begin();fi!=m.face.end();++fi)
@ -195,10 +198,10 @@ static void VertexFace(MeshType &m)
{ {
for(int j=0;j<3;++j) for(int j=0;j<3;++j)
{ {
(*fi).Fv(j) = (*fi).V(j)->Fp(); (*fi).FVp(j) = (*fi).V(j)->VFb();
(*fi).Zv(j) = (*fi).V(j)->Zp(); (*fi).FVi(j) = (*fi).V(j)->VFi();
(*fi).V(j)->Fp() = &(*fi); (*fi).V(j)->VFb() = &(*fi);
(*fi).V(j)->Zp() = j; (*fi).V(j)->VFi() = j;
} }
} }
} }