removed unused variable and cast unsigned vs int to remove gcc warnings

This commit is contained in:
Paolo Cignoni cignoni 2010-06-23 14:51:52 +00:00
parent 669efbbaea
commit 873fa308bf
4 changed files with 8 additions and 8 deletions

View File

@ -1835,8 +1835,8 @@ public:
MeshType *_input_mesh,
ParamMesh * _param_mesh,
AbstractMesh *_absMesh,
bool test=true,
bool use_quality=true)
bool test=true)
// bool use_quality=true)
{
param_mesh=_param_mesh;
param_mesh->Clear();

View File

@ -98,7 +98,7 @@ class IsoTransfer
TRGrid.Set(IsoParam.ParaMesh()->face.begin(),IsoParam.ParaMesh()->face.end());
ScalarType maxDist=IsoParam.ParaMesh()->bbox.Diag();
///then for each vertex find the closest
for (int i=0;i<to_assing.vert.size();i++)
for (size_t i=0;i<to_assing.vert.size();i++)
{
typename MeshType::VertexType *vert=&to_assing.vert[i];
if (!vert->IsD())
@ -114,7 +114,7 @@ class IsoTransfer
(bary.Y()>=0)&&(bary.Y()<=1)&&
(bary.Z()>=0)&&(bary.Z()<=1)))
{
printf("%d,%3.3f,%3.3f,%3.3f",i,bary.X(),bary.Y(),bary.Z());
printf("%i,%3.3f,%3.3f,%3.3f",int(i),bary.X(),bary.Y(),bary.Z());
system("pause");
}
Clamp(bary);

View File

@ -743,7 +743,7 @@ template <class MeshType>
void AssingFather(typename MeshType::VertexType &v,
typename MeshType::FaceType *father,
typename MeshType::CoordType &bary,
MeshType &domain)
MeshType &/*domain*/)
{
#ifdef _DEBUG
const typename MeshType::ScalarType eps=(typename MeshType::ScalarType)0.00001;

View File

@ -314,7 +314,7 @@ private:
///take the face that has lower number of vertices
BaseFace *fmin=vfi2.F();
int index=vfi2.I();
int sizeMin=fmin->vertices_bary.size();
size_t sizeMin=fmin->vertices_bary.size();
while (!vfi2.End())
{
BaseFace *f=vfi2.F();
@ -759,7 +759,7 @@ public:
void ScaleMesh(MeshType &m,
const ScalarType &factor)
{
for (int i=0;i<m.vert.size();i++)
for (size_t i=0;i<m.vert.size();i++)
if (!m.vert[i].IsD())
m.vert[i].P()*=factor;
}
@ -767,7 +767,7 @@ public:
template <class MeshType>
void TranslateMesh(MeshType &m,const typename MeshType::CoordType &vect)
{
for (int i=0;i<m.vert.size();i++)
for (size_t i=0;i<m.vert.size();i++)
if (!m.vert[i].IsD())
m.vert[i].P()+=vect;
}