diff --git a/vcg/simplex/edge/pos.h b/vcg/simplex/edge/pos.h index 527b087c..7d7d846d 100644 --- a/vcg/simplex/edge/pos.h +++ b/vcg/simplex/edge/pos.h @@ -60,7 +60,7 @@ public: /// Local index of the vertex int z; /// Default Constructor - VertexStar() {} + VertexStar() : e(0), z(0) {} /// Constructor which associates the EdgePos elementet with a face and its edge VertexStar(EDGETYPE * const ep, int const zp) { diff --git a/vcg/simplex/face/pos.h b/vcg/simplex/face/pos.h index 9b844f1b..d970734e 100644 --- a/vcg/simplex/face/pos.h +++ b/vcg/simplex/face/pos.h @@ -71,7 +71,7 @@ public: VertexType *v; /// Default constructor - Pos(){} + Pos() : f(0), z(-1), v(0) {} /// Constructor which associates the half-edge element with a face, its edge and its vertex /// \note that the input must be consistent, e.g. it should hold that \c vp==fp->V0(zp) or \c vp==fp->V1(zp) Pos(FaceType * const fp, int const zp, VertexType * const vp) @@ -414,7 +414,7 @@ public: int z; /// Default constructor - VFIterator(){} + VFIterator() : f(0), z(-1) {} /// Constructor which associates the half-edge elementet with a face and its vertex VFIterator(FaceType * _f, const int & _z){f = _f; z = _z; assert(z>=0 && "VFAdj must be initialized");} diff --git a/vcg/simplex/tetrahedron/pos.h b/vcg/simplex/tetrahedron/pos.h index 2c62c092..6d2873ad 100644 --- a/vcg/simplex/tetrahedron/pos.h +++ b/vcg/simplex/tetrahedron/pos.h @@ -54,7 +54,7 @@ private: int _vi; /// Default Constructor public: - VTIterator(){} + VTIterator() : _vt(0), _vi(-1){} /// Constructor which associates the EdgePos elementet with a face and its edge VTIterator(TetraType * const tp, int const zp) {