From e6cc513cae999310d788dafb391c3199f3735844 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Sat, 22 Sep 2012 13:40:56 +0000 Subject: [PATCH] minor changes in singularity drawing --- wrap/gl/gl_field.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wrap/gl/gl_field.h b/wrap/gl/gl_field.h index 5c0666a9..f77b7f4f 100644 --- a/wrap/gl/gl_field.h +++ b/wrap/gl/gl_field.h @@ -1,3 +1,5 @@ +#include + namespace vcg{ template class GLField @@ -90,11 +92,11 @@ public: for (unsigned int i=0;i::IsSingular(mesh.vert[i],mmatch); + if (!mesh.vert[i].IsSingular())continue; + int mmatch=mesh.vert[i].missmatch; + //bool IsSing=vcg::tri::CrossField::IsSingular(mesh.vert[i],mmatch); //if (!IsSing)continue; - assert(IsSing); + //assert(IsSing); assert(mmatch!=0); /*vcg::glColor(vcg::Color4b(255,0,0,255));*/ if (mmatch==1)vcg::glColor(vcg::Color4b(0,0,255,255));