Export: Added blending option, gain compensation performance increased when exporting with textures

This commit is contained in:
matlabbe
2017-04-09 19:16:50 -04:00
parent 2509a842f0
commit f1d96a30a4
9 changed files with 495 additions and 75 deletions
+3 -2
View File
@@ -613,7 +613,8 @@ pcl::TextureMesh::Ptr createTextureMesh(
const std::map<int, CameraModel> & cameraModels,
float maxDistance,
int minClusterSize,
const ProgressState * state)
const ProgressState * state,
std::vector<std::map<int, pcl::PointXY> > * vertexToPixels)
{
UASSERT(mesh->polygons.size());
pcl::TextureMesh::Ptr textureMesh(new pcl::TextureMesh);
@@ -671,7 +672,7 @@ pcl::TextureMesh::Ptr createTextureMesh(
pcl::TextureMapping<pcl::PointXYZ> tm; // TextureMapping object that will perform the sort
tm.setMaxDistance(maxDistance);
tm.setMinClusterSize(minClusterSize);
if(tm.textureMeshwithMultipleCameras2(*textureMesh, cameras, state))
if(tm.textureMeshwithMultipleCameras2(*textureMesh, cameras, state, vertexToPixels))
{
// compute normals for the mesh if not already here
bool hasNormals = false;