From e78d9c252cc52809e36bd362e610ffffb66141cf Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Sat, 5 May 2018 00:33:38 +0200 Subject: [PATCH] Updated the pos to do not use crease stuff and added selection helpers for pos --- vcg/simplex/face/pos.h | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/vcg/simplex/face/pos.h b/vcg/simplex/face/pos.h index d6d0c735..e0212798 100644 --- a/vcg/simplex/face/pos.h +++ b/vcg/simplex/face/pos.h @@ -289,40 +289,12 @@ public: //assert(f->FFp(z)==f); // f is border along j } - /// Finds the next Crease half-edge border - /// TODO change crease flag with something more generic (per edge) - void NextCrease( ) - { - assert(f->V(f->Prev(z))!=v && (f->V(f->Next(z))==v || f->V(z)==v)); - assert(IsCrease()); // 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 (!IsCrease()) FlipF(); - } - while(!IsCrease()); - - // L'edge j e' di bordo e deve contenere v - assert(IsCrease() &&( 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)); - } - /// Checks if the half-edge is of border bool IsBorder()const { return face::IsBorder(*f,z); } - /// Checks if the half-edge is of crease - bool IsCrease() const - { - return f->IsCrease(z); - } - bool IsFaux() const { return (f->IsF(z)); @@ -333,6 +305,10 @@ public: return face::IsManifold(*f,z); } + bool IsFaceS() const { return f->IsS();} + bool IsEdgeS() const { return f->IsFaceEdgeS(z);} + bool IsVertS() const { return v->IsS();} + /*! * Returns the angle (in radiant) between the two edges incident on V. */