mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 02:24:38 +00:00
removed unused variable and cast unsigned vs int to remove gcc warnings
This commit is contained in:
parent
669efbbaea
commit
873fa308bf
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user