From 1e6b80088071c3bdfd3a1d3256747a73aacac3ad Mon Sep 17 00:00:00 2001 From: maxcorsini Date: Tue, 9 Oct 2007 12:04:06 +0000 Subject: [PATCH] remove signed/unsigned warning --- vcg/complex/trimesh/create/ball_pivoting.h | 2 +- vcg/simplex/faceplus/component_ocf.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/vcg/complex/trimesh/create/ball_pivoting.h b/vcg/complex/trimesh/create/ball_pivoting.h index ca293c01..3138f40f 100644 --- a/vcg/complex/trimesh/create/ball_pivoting.h +++ b/vcg/complex/trimesh/create/ball_pivoting.h @@ -240,7 +240,7 @@ template class BallPivoting: public AdvancingFront { VertexType *candidate = NULL; ScalarType min_angle = M_PI; - for(int i = 0; i < targets.size(); i++) { + for(int i = 0; i < static_cast(targets.size()); i++) { VertexType *v = targets[i]; int id = v - &*this->mesh.vert.begin(); if(v->IsD()) continue; diff --git a/vcg/simplex/faceplus/component_ocf.h b/vcg/simplex/faceplus/component_ocf.h index 9b790252..e92161fa 100644 --- a/vcg/simplex/faceplus/component_ocf.h +++ b/vcg/simplex/faceplus/component_ocf.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.20 2007/03/12 15:37:19 tarini +Texture coord name change! "TCoord" and "Texture" are BAD. "TexCoord" is GOOD. + Revision 1.19 2006/11/28 22:34:28 cignoni Added default constructor with null initialization to adjacency members. AddFaces and AddVertices NEED to know if the topology is correctly computed to update it. @@ -174,7 +177,7 @@ public: void pop_back(); void resize(const unsigned int & _size) { - int oldsize = BaseType::size(); + unsigned int oldsize = BaseType::size(); BaseType::resize(_size); if(oldsize<_size){ ThisTypeIterator firstnew = BaseType::begin();