mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
dellepiane: modified to account for change in Plane creation + color-per-vertex attribute saving
This commit is contained in:
parent
3ea32c486d
commit
080d16b161
@ -168,6 +168,7 @@ bool FilterPhotosynthPlugin::applyFilter(QAction */*filter*/, MeshDocument &md,
|
||||
mm->cm.vert.back().P() = Point3f(p._x,p._z,-p._y);
|
||||
mm->cm.vert.back().C() = Color4b(p._r,p._g,p._b,255);
|
||||
}
|
||||
mm->updateDataMask(MeshModel::MM_VERTCOLOR);
|
||||
//we consider cameras only if the user chooses to download images
|
||||
if(par.getBool("saveImages"))
|
||||
{
|
||||
@ -203,7 +204,7 @@ bool FilterPhotosynthPlugin::applyFilter(QAction */*filter*/, MeshDocument &md,
|
||||
//this way the user can choose which point cloud the raster has to align with
|
||||
RasterModel *rm = md.addNewRaster();
|
||||
QString imgName = imageDir.filePath(QString("IMG_%1.jpg").arg(img._ID) );
|
||||
rm->addPlane(new Plane(imgName,QString("")));
|
||||
rm->addPlane(new Plane(imgName,Plane::RGBA));
|
||||
rm->shot = s;
|
||||
rm->setLabel(QString("IMG_%1_%2.jpg").arg(int(img._ID),3,10,QLatin1Char('0')).arg(sys->_id));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user