Fixed build with PCL < 1.7.2, fixed some warnings

This commit is contained in:
matlabbe
2015-08-25 11:10:49 -04:00
parent cd77489704
commit b4efdec9fc
3 changed files with 11 additions and 8 deletions

View File

@@ -171,7 +171,7 @@ pcl::TextureMesh::Ptr createTextureMesh(
// Create materials for each texture (and one extra for occluded faces)
textureMesh->tex_materials.resize (cameras.size () + 1);
for(int i = 0 ; i <= cameras.size() ; ++i)
for(unsigned int i = 0 ; i <= cameras.size() ; ++i)
{
pcl::TexMaterial mesh_material;
mesh_material.tex_Ka.r = 0.2f;