From 3bb7e7bdd9d00aff887ff49167b67110b934a4b4 Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 11 May 2011 09:54:05 +0000 Subject: [PATCH] Corrected again the constructor of the base trimesh. Now it simply call the clear (just to enforce same behaviour) --- vcg/complex/complex.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vcg/complex/complex.h b/vcg/complex/complex.h index 2e6396b1..8941b037 100644 --- a/vcg/complex/complex.h +++ b/vcg/complex/complex.h @@ -323,10 +323,7 @@ public: /// Default constructor TriMesh() { - fn = en = vn = 0; - imark = 0; - attrn = 0; - C()=Color4b::Gray; + Clear(); } /// destructor @@ -372,10 +369,15 @@ void Clear() { vert.clear(); face.clear(); + edge.clear(); // textures.clear(); // normalmaps.clear(); vn = 0; + en = 0; fn = 0; + imark = 0; + attrn = 0; + C()=Color4b::Gray; } /// Reflection functions that speak about vertex and face properties.