removed warning of unused variables

This commit is contained in:
Paolo Cignoni 2004-05-12 14:43:36 +00:00
parent 6ecff2a382
commit 88926f2af7
4 changed files with 14 additions and 9 deletions

View File

@ -140,8 +140,7 @@ void MinDistPoint( MESH & mesh, const Point3<SCALAR> & p, GRID & gr, SCALAR & md
/*normf = (1-(alfa+beta))*(bestf->V(0)->Normal())+ /*normf = (1-(alfa+beta))*(bestf->V(0)->Normal())+
(alfa*(bestf->V(1)->Normal()))+ (alfa*(bestf->V(1)->Normal()))+
(beta*(bestf->V(2)->Normal()));*/ (beta*(bestf->V(2)->Normal()));*/
bool ret=bestf->InterpolationParameters(q, alfa, beta, gamma); bestf->InterpolationParameters(q, alfa, beta, gamma);
//assert(ret);
normf = (bestf->V(0)->cN())*alfa+ normf = (bestf->V(0)->cN())*alfa+
(bestf->V(1)->cN())*beta+ (bestf->V(1)->cN())*beta+
(bestf->V(2)->cN())*gamma; (bestf->V(2)->cN())*gamma;

View File

@ -356,7 +356,7 @@ template <class MetroMesh>
void Sampling<MetroMesh>::MontecarloFaceSampling() void Sampling<MetroMesh>::MontecarloFaceSampling()
{ {
// Montecarlo sampling. // Montecarlo sampling.
int cnt = 0; // int cnt = 0;
double n_samples_decimal = 0.0; double n_samples_decimal = 0.0;
FaceIterator fi; FaceIterator fi;

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.11 2004/05/12 12:50:20 turini
include color4
Revision 1.10 2004/05/10 14:01:09 ganovelli Revision 1.10 2004/05/10 14:01:09 ganovelli
assert(i*0) for using "i" and preventing the compiler warning for unreferenced variable assert(i*0) for using "i" and preventing the compiler warning for unreferenced variable
@ -358,8 +361,8 @@ public:
#ifdef __VCGLIB_FACE_WT #ifdef __VCGLIB_FACE_WT
return _wt[i]; return _wt[i];
#else #else
assert(i*0); assert(0);
return *(TCTYPE*)(&_flags); return *(TCTYPE*)(&_flags +i) ;
#endif #endif
} }
@ -417,8 +420,8 @@ public:
#ifdef __VCGLIB_FACE_WC #ifdef __VCGLIB_FACE_WC
return _wc[i]; return _wc[i];
#else #else
assert(i*0); assert(0);
return *(Color4b*)(&_flags); return *(Color4b*)(&_flags + i);
#endif #endif
} }
@ -492,8 +495,9 @@ public:
return fs[j]; return fs[j];
#else #else
assert(0); assert(0);
static FFTYPE *dum=0; static FFTYPE *dum=0; dum+=j;
return dum; return dum;
#endif #endif
} }

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.4 2004/05/12 10:19:30 ganovelli
new line added at the end of file
Revision 1.3 2004/03/18 15:30:46 cignoni Revision 1.3 2004/03/18 15:30:46 cignoni
Removed float/double warning Removed float/double warning
@ -405,7 +408,6 @@ static bool Save(SaveMeshType &m, const char * filename, bool binary, PlyInfo &
assert(j==m.vn); assert(j==m.vn);
char c = 3; char c = 3;
char k = 9;
unsigned char b9 = 9; unsigned char b9 = 9;
unsigned char b6 = 6; unsigned char b6 = 6;
FacePointer fp; FacePointer fp;