diff --git a/vcg/simplex/tetrahedron/pos.h b/vcg/simplex/tetrahedron/pos.h index 4a610828..57d4fe2e 100644 --- a/vcg/simplex/tetrahedron/pos.h +++ b/vcg/simplex/tetrahedron/pos.h @@ -46,6 +46,7 @@ class VTIterator public: /// The tetrahedron type typedef MTTYPE TetraType; + typedef typename TetraType::VertexType VertexType; private: /// Pointer to a tetrahedron TetraType *_vt; @@ -54,11 +55,16 @@ private: /// Default Constructor public: VTIterator() : _vt(0), _vi(-1){} - /// Constructor which associates the EdgePos elementet with a face and its edge + /// Constructor VTIterator(TetraType * const tp, int const zp) { - _vt=tp; - _vi=zp; + _vt=tp->V(zp)->VTp(); + _vi=tp->V(zp)->VTi(); + } + VTIterator(VertexType * const vp) + { + _vt = vp->VTp(); + _vi = vp->VTi(); } ~VTIterator(){}; @@ -118,6 +124,7 @@ void VVStarVT( typename TetraType::VertexPointer vp, std::vector