From dc06357cfaac36edb8d7da020f4fcab79a29d2d2 Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 3 May 2006 21:42:10 +0000 Subject: [PATCH] HasPerWedgeTexture -> HasPerWedgeTexture(m) --- vcg/complex/trimesh/refine.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vcg/complex/trimesh/refine.h b/vcg/complex/trimesh/refine.h index fe2d4c98..67583b19 100644 --- a/vcg/complex/trimesh/refine.h +++ b/vcg/complex/trimesh/refine.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.9 2005/12/22 11:24:09 cignoni +removed div by zero bug in callback of refine (tnx to Mario Latronico) + Revision 1.8 2005/12/13 11:01:01 cignoni Added Callback in refine @@ -415,7 +418,7 @@ bool RefineE(MESH_TYPE &m, MIDPOINT mid, EDGEPRED ep,bool RefineSelected=false, if(RefineSelected) (*nf[i]).SetS(); } - if(MESH_TYPE::HasPerWedgeTexture()) + if(tri::HasPerWedgeTexture(m)) for(i=0;i<3;++i) { wtt[i]=(*fi).WT(i); wtt[3+i]=mid.WedgeInterp((*fi).WT(i),(*fi).WT((i+1)%3)); @@ -426,7 +429,7 @@ bool RefineE(MESH_TYPE &m, MIDPOINT mid, EDGEPRED ep,bool RefineSelected=false, for(j=0;j<3;++j){ (*nf[i]).V(j)=&*vv[SplitTab[ind].TV[i][j]]; - if(MESH_TYPE::HasPerWedgeTexture()) //analogo ai vertici... + if(tri::HasPerWedgeTexture(m)) //analogo ai vertici... (*nf[i]).WT(j)=wtt[SplitTab[ind].TV[i][j]]; assert((*nf[i]).V(j)!=0); @@ -445,7 +448,7 @@ bool RefineE(MESH_TYPE &m, MIDPOINT mid, EDGEPRED ep,bool RefineSelected=false, { // swap the last two triangles (*nf[2]).V(1)=(*nf[1]).V(0); (*nf[1]).V(1)=(*nf[2]).V(0); - if(MESH_TYPE::HasPerWedgeTexture()){ //analogo ai vertici... + if(tri::HasPerWedgeTexture(m)){ //analogo ai vertici... (*nf[2]).WT(1)=(*nf[1]).WT(0); (*nf[1]).WT(1)=(*nf[2]).WT(0); }