parent
20f49352f1
commit
8096308cb2
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.4 2004/05/10 15:21:47 cignoni
|
||||||
|
Added a constructor without vertex pointer
|
||||||
|
|
||||||
Revision 1.3 2004/05/10 13:41:57 cignoni
|
Revision 1.3 2004/05/10 13:41:57 cignoni
|
||||||
Added VFIterator
|
Added VFIterator
|
||||||
|
|
||||||
|
@ -121,9 +124,9 @@ public:
|
||||||
/// Change face via z
|
/// Change face via z
|
||||||
void NextF()
|
void NextF()
|
||||||
{
|
{
|
||||||
FaceType::BaseFaceType * t = f;
|
FaceType * t = f;
|
||||||
f = t->F(z);
|
f = t->FFp(z);
|
||||||
z = t->Z(z);
|
z = t->FFi(z);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Paolo Cignoni 19/6/99
|
// Paolo Cignoni 19/6/99
|
||||||
|
@ -162,10 +165,10 @@ public:
|
||||||
/// Changes face maintaining the same vertex and the same edge
|
/// Changes face maintaining the same vertex and the same edge
|
||||||
void FlipF()
|
void FlipF()
|
||||||
{
|
{
|
||||||
assert( f->IsManifold(z) );
|
assert( f->FFp(z)->FFp(f->FFi(z))==f );
|
||||||
assert(f->V((z+2)%3)!=v && (f->V((z+1)%3)==v || f->V((z+0)%3)==v));
|
assert(f->V((z+2)%3)!=v && (f->V((z+1)%3)==v || f->V((z+0)%3)==v));
|
||||||
FaceType::BaseFaceType *nf=f->F(z);
|
FaceType *nf=f->FFp(z);
|
||||||
int nz=f->Z(z);
|
int nz=f->FFi(z);
|
||||||
assert(nf->V((nz+2)%3)!=v && (nf->V((nz+1)%3)==v || nf->V((nz+0)%3)==v));
|
assert(nf->V((nz+2)%3)!=v && (nf->V((nz+1)%3)==v || nf->V((nz+0)%3)==v));
|
||||||
f=nf;
|
f=nf;
|
||||||
z=nz;
|
z=nz;
|
||||||
|
@ -209,7 +212,7 @@ public:
|
||||||
void NextB( )
|
void NextB( )
|
||||||
{
|
{
|
||||||
assert(f->V((z+2)%3)!=v && (f->V((z+1)%3)==v || f->V((z+0)%3)==v));
|
assert(f->V((z+2)%3)!=v && (f->V((z+1)%3)==v || f->V((z+0)%3)==v));
|
||||||
assert(f->F(z)==f); // f is border along j
|
assert(f->FFP(z)==f); // f is border along j
|
||||||
// Si deve cambiare faccia intorno allo stesso vertice v
|
// Si deve cambiare faccia intorno allo stesso vertice v
|
||||||
//finche' non si trova una faccia di bordo.
|
//finche' non si trova una faccia di bordo.
|
||||||
do
|
do
|
||||||
|
@ -221,7 +224,7 @@ public:
|
||||||
|
|
||||||
FlipV();
|
FlipV();
|
||||||
assert(f->V((z+2)%3)!=v && (f->V((z+1)%3)==v || f->V((z+0)%3)==v));
|
assert(f->V((z+2)%3)!=v && (f->V((z+1)%3)==v || f->V((z+0)%3)==v));
|
||||||
assert(f->F(z)==f); // f is border along j
|
assert(f->FFp(z)==f); // f is border along j
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Checks if the half-edge is of border
|
/// Checks if the half-edge is of border
|
||||||
|
|
Loading…
Reference in New Issue