Fixed more warnings

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@933 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-08-15 08:43:04 +00:00
parent cb731fb0d1
commit 51f4f26300
6 changed files with 21 additions and 20 deletions

View File

@@ -75,7 +75,7 @@ StripifierT<Mesh>::
}
template <class Mesh>
unsigned int
size_t
StripifierT<Mesh>::
stripify()
{
@@ -107,7 +107,7 @@ build_strips()
{
Strip experiments[3];
typename Mesh::HalfedgeHandle h[3];
unsigned int best_idx, best_length, length;
size_t best_length,length , best_idx;
FaceHandles faces[3];
typename FaceHandles::iterator fh_it, fh_end;
typename Mesh::FaceIter f_it, f_end=mesh_.faces_end();
@@ -148,8 +148,9 @@ build_strips()
// build 3 strips, take best one
best_length = best_idx = 0;
for (unsigned int i=0; i<3; ++i)
best_length = 0;
best_idx = 0;
for (size_t i=0; i<3; ++i)
{
build_strip(h[i], experiments[i], faces[i]);
if ((length = experiments[i].size()) > best_length)

View File

@@ -92,7 +92,7 @@ public:
~StripifierT();
/// Compute triangle strips, returns number of strips
unsigned int stripify();
size_t stripify();
/// delete all strips
void clear() { Strips().swap(strips_); }