diff --git a/vcg/simplex/face/pos.h b/vcg/simplex/face/pos.h index 6a54d640..560e0bb2 100644 --- a/vcg/simplex/face/pos.h +++ b/vcg/simplex/face/pos.h @@ -211,24 +211,16 @@ public: assert(f->V(f->Prev(z))!=v && (f->V(f->Next(z))==v || f->V(z)==v)); } - // return the vertex that it should have if we make FlipV; - VertexType *VFlip() - { - assert(f->V(f->Prev(z))!=v && (f->V(f->Next(z))==v || f->V(z)==v)); - if(f->V(f->Next(z))==v) return f->V(z); - else return f->V(f->Next(z)); - } - - // return the vertex that it should have if we make FlipV; - const VertexType *VFlip() const + /// return the vertex that it should have if we make FlipV; + VertexType *VFlip() const { assert(f->cV(f->Prev(z))!=v && (f->cV(f->Next(z))==v || f->cV(z)==v)); if(f->cV(f->Next(z))==v) return f->cV(z); else return f->cV(f->Next(z)); } - // return the face that it should have if we make FlipF; - const FaceType *FFlip() const + /// return the face that it should have if we make FlipF; + FaceType *FFlip() const { assert( f->FFp(z)->FFp(f->FFi(z))==f ); assert(f->V(f->Prev(z))!=v && (f->V(f->Next(z))==v || f->V((z+0)%f->VN())==v)); @@ -373,20 +365,6 @@ public: } }; -template -/** Class PosN. - This structure is equivalent to a Pos, but it contains a normal. - @param FaceType (Template-Parameter) Specifies the type of the faces - */ -class PosN : public Pos -{ -public: - typedef typename FaceType::CoordType CoordType; - //normale per visualizzazione creaseangle - CoordType normal; -}; - - /** Class VFIterator. This class is used as an iterator over the VF adjacency. It allow to easily traverse all the faces around a given vertex v;