passed numCuts as parameter to draw cuts of different colors in GLDrawSeams fucntion

This commit is contained in:
Nico Pietroni 2013-01-22 10:02:05 +00:00
parent cb13855328
commit c1c3782576
1 changed files with 3 additions and 2 deletions

View File

@ -94,7 +94,8 @@ public:
template <class MeshType> template <class MeshType>
static void GLDrawSeams(MeshType &mesh, static void GLDrawSeams(MeshType &mesh,
float size=3, float size=3,
bool UV=false) bool UV=false,
int numCuts=200)
{ {
bool hasSeam = vcg::tri::HasPerFaceAttribute(mesh,std::string("Seams")); bool hasSeam = vcg::tri::HasPerFaceAttribute(mesh,std::string("Seams"));
if(!hasSeam)return; if(!hasSeam)return;
@ -130,7 +131,7 @@ public:
int index=Handle_SeamIndex[i][j]; int index=Handle_SeamIndex[i][j];
//assert(index>0); //assert(index>0);
if (index>=0) if (index>=0)
seamCol[j]=vcg::Color4b::Scatter(100,index); seamCol[j]=vcg::Color4b::Scatter(numCuts,index);
} }
} }