corrected errors on vfappend
This commit is contained in:
parent
50b5c30d05
commit
87b79eecad
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.12 2004/08/05 22:27:00 pietroni
|
||||||
|
added VFAppend funtion
|
||||||
|
|
||||||
Revision 1.10 2004/07/27 09:49:23 cignoni
|
Revision 1.10 2004/07/27 09:49:23 cignoni
|
||||||
Removed warning about postfix incremnet of VFIterator
|
Removed warning about postfix incremnet of VFIterator
|
||||||
|
|
||||||
|
@ -261,12 +264,16 @@ template <class FaceType>
|
||||||
void VFAppend(FaceType* & f, int z)
|
void VFAppend(FaceType* & f, int z)
|
||||||
{
|
{
|
||||||
FaceType::VertexType *v=f->V(z);
|
FaceType::VertexType *v=f->V(z);
|
||||||
FaceType *f0=v->VFp();
|
if (v->VFp()!=0)
|
||||||
int z0=v->VFi();
|
{
|
||||||
|
FaceType *f0=v->VFp();
|
||||||
|
int z0=v->VFi();
|
||||||
|
//append
|
||||||
|
f->VFp(z)=f0;
|
||||||
|
f->VFi(z)=z0;
|
||||||
|
}
|
||||||
v->VFp()=f;
|
v->VFp()=f;
|
||||||
v->VFi()=z;
|
v->VFi()=z;
|
||||||
f->VFp(z)=f0;
|
|
||||||
f->VFi(z)=z0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
Loading…
Reference in New Issue