From da7a44c98db03ba0ab41d82f83a2842bfe2cdac3 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Tue, 23 Jul 2013 11:23:21 +0000 Subject: [PATCH] some minor changes on flag inizialization --- wrap/miq/core/seams_initializer.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/wrap/miq/core/seams_initializer.h b/wrap/miq/core/seams_initializer.h index e76b01b1..076fd518 100644 --- a/wrap/miq/core/seams_initializer.h +++ b/wrap/miq/core/seams_initializer.h @@ -162,7 +162,7 @@ private: bool isSing=IsSingularByMMatch(mesh->vert[i],missmatch); if (isSing) { - //mesh->vert[i].SetS(); + mesh->vert[i].SetS(); Handle_Singular[i]=true; if (missmatch==3)missmatch=1; else @@ -171,7 +171,7 @@ private: } else { - //mesh->vert[i].ClearS(); + mesh->vert[i].ClearS(); Handle_Singular[i]=false; Handle_SingularDegree[i]=0; } @@ -345,8 +345,10 @@ public: mesh=_mesh; - vcg::tri::UpdateFlags::VertexBorderFromNone(*mesh); - vcg::tri::UpdateFlags::FaceBorderFromNone(*mesh); + vcg::tri::UpdateTopology::FaceFace(*_mesh); + vcg::tri::UpdateFlags::FaceBorderFromFF(*_mesh); + vcg::tri::UpdateFlags::VertexBorderFromFace(*_mesh); + AddAttributesIfNeeded(); if (orient_globally) @@ -359,7 +361,7 @@ public: InitTopologycalCuts(); AddSeamsByMM(); } - InitSeamIndexes(); + //InitSeamIndexes(); } SeamsInitializer(){mesh=NULL;}