mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-14 08:34:37 +00:00
filter_meshing and filter_sampling work with MeshModel textures
This commit is contained in:
parent
e13db4b32d
commit
2c7cb07c0e
@ -1402,7 +1402,10 @@ std::map<std::string, QVariant> ExtraMeshFilterPlugin::applyFilter(
|
||||
|
||||
MeshModel *um=md.addNewMesh("","Unrolled Mesh");
|
||||
um->updateDataMask(&m);
|
||||
um->cm.textures = m.cm.textures;
|
||||
for (const std::string& tex: m.cm.textures) {
|
||||
um->addTexture(tex, m.getTexture(tex));
|
||||
}
|
||||
//um->cm.textures = m.cm.textures;
|
||||
float avgZ=0;
|
||||
CMeshO::VertexIterator vi;
|
||||
// First loop duplicate accordingly the vertices.
|
||||
|
||||
@ -771,7 +771,7 @@ std::map<std::string, QVariant> FilterDocSampling::applyFilter(
|
||||
|
||||
if(RecoverColor && curMM->cm.textures.size()>0)
|
||||
{
|
||||
mps.tex= new QImage(curMM->cm.textures[0].c_str());
|
||||
mps.tex= new QImage(curMM->getTexture(curMM->cm.textures[0]));
|
||||
if(mps.texSamplingWidth==0) mps.texSamplingWidth = mps.tex->width();
|
||||
if(mps.texSamplingHeight==0) mps.texSamplingHeight = mps.tex->height();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user