added NextNotFaux function
This commit is contained in:
parent
4fe40ecef5
commit
c3beef6091
|
|
@ -263,12 +263,39 @@ public:
|
||||||
assert(f->FFp(z)==f); // f is border along j
|
assert(f->FFp(z)==f); // f is border along j
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Finds the next half-edge border
|
||||||
|
void NextNotFaux( )
|
||||||
|
{
|
||||||
|
assert(f->V(f->Prev(z))!=v && (f->V(f->Next(z))==v || f->V(z)==v));
|
||||||
|
//assert(f->FFp(z)==f); // f is border along j
|
||||||
|
// Si deve cambiare faccia intorno allo stesso vertice v
|
||||||
|
//finche' non si trova una faccia di bordo.
|
||||||
|
do
|
||||||
|
{
|
||||||
|
FlipE();
|
||||||
|
if (IsFaux()) FlipF();
|
||||||
|
}
|
||||||
|
while(IsFaux());
|
||||||
|
|
||||||
|
// L'edge j e' di bordo e deve contenere v
|
||||||
|
assert((!IsFaux()) &&( f->V(z)==v || f->V(f->Next(z))==v ));
|
||||||
|
|
||||||
|
FlipV();
|
||||||
|
assert(f->V(f->Prev(z))!=v && (f->V(f->Next(z))==v || f->V(z)==v));
|
||||||
|
//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
|
||||||
bool IsBorder()
|
bool IsBorder()
|
||||||
{
|
{
|
||||||
return face::IsBorder(*f,z);
|
return face::IsBorder(*f,z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IsFaux()
|
||||||
|
{
|
||||||
|
return (f->IsF(z));
|
||||||
|
}
|
||||||
|
|
||||||
bool IsManifold()
|
bool IsManifold()
|
||||||
{
|
{
|
||||||
return face::IsManifold(*f,z);
|
return face::IsManifold(*f,z);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue