added NextEdgeS function
This commit is contained in:
parent
20d7468438
commit
edced0128c
|
@ -305,6 +305,23 @@ public:
|
||||||
return face::IsManifold(*f,z);
|
return face::IsManifold(*f,z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NextEdgeS( )
|
||||||
|
{
|
||||||
|
assert(f->V(f->Prev(z))!=v && (f->V(f->Next(z))==v || f->V(z)==v));
|
||||||
|
assert(IsEdgeS());
|
||||||
|
do
|
||||||
|
{
|
||||||
|
FlipE();
|
||||||
|
if (!IsEdgeS()) FlipF();
|
||||||
|
}
|
||||||
|
while(!IsEdgeS());
|
||||||
|
|
||||||
|
assert(IsEdgeS() &&( 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));
|
||||||
|
}
|
||||||
|
|
||||||
bool IsFaceS() const { return f->IsS();}
|
bool IsFaceS() const { return f->IsS();}
|
||||||
bool IsEdgeS() const { return f->IsFaceEdgeS(z);}
|
bool IsEdgeS() const { return f->IsFaceEdgeS(z);}
|
||||||
bool IsVertS() const { return v->IsS();}
|
bool IsVertS() const { return v->IsS();}
|
||||||
|
@ -314,7 +331,7 @@ public:
|
||||||
*/
|
*/
|
||||||
ScalarType AngleRad() const
|
ScalarType AngleRad() const
|
||||||
{
|
{
|
||||||
return Angle(f->V(f->Prev(z))->cP()-v->cP(), f->V(f->Next(z))->cP()-v->cP());
|
return Angle(f->V(f->Prev(z))->cP()-v->cP(), f->V(f->Next(z))->cP()-v->cP());
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
Loading…
Reference in New Issue