From c1c378257674f05368c7cabe91dd33f03ca64949 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Tue, 22 Jan 2013 10:02:05 +0000 Subject: [PATCH] passed numCuts as parameter to draw cuts of different colors in GLDrawSeams fucntion --- wrap/miq/core/glUtils.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wrap/miq/core/glUtils.h b/wrap/miq/core/glUtils.h index 2725133f..dd6c0957 100644 --- a/wrap/miq/core/glUtils.h +++ b/wrap/miq/core/glUtils.h @@ -94,7 +94,8 @@ public: template static void GLDrawSeams(MeshType &mesh, float size=3, - bool UV=false) + bool UV=false, + int numCuts=200) { bool hasSeam = vcg::tri::HasPerFaceAttribute(mesh,std::string("Seams")); if(!hasSeam)return; @@ -130,7 +131,7 @@ public: int index=Handle_SeamIndex[i][j]; //assert(index>0); if (index>=0) - seamCol[j]=vcg::Color4b::Scatter(100,index); + seamCol[j]=vcg::Color4b::Scatter(numCuts,index); } }