Export: fixed white squares in exported texture (shifting next tex coords to wrong sub texture). Transfer color radius option use nearest point when =0. Fixed a crash on export dense with texture when last materials are not used (they have no polygons associated).

This commit is contained in:
matlabbe
2017-01-26 09:42:52 -05:00
parent 496319a2b0
commit 66ee792e8c
3 changed files with 55 additions and 34 deletions

View File

@@ -1824,7 +1824,7 @@ void concatenateTextureMaterials(pcl::TextureMesh & mesh, const cv::Size & image
UDEBUG("scaledWidth=%f scaledHeight=%f lowerBorderSize=%f", scaledWidth, scaledHeight, lowerBorderSize);
if(materialsKept)
{
materialsKept->resize(mesh.tex_materials.size(), 0);
materialsKept->resize(mesh.tex_materials.size(), false);
}
for(unsigned int t=0; t<mesh.tex_materials.size(); ++t)
{