mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-14 00:24:38 +00:00
fix off polygon export
This commit is contained in:
parent
09f4349d05
commit
c5c7633e6b
@ -247,7 +247,9 @@ void saveMeshWithStandardParameters(
|
||||
ioPlugin->exportMaskCapability(extension, capability, defaultBits);
|
||||
RichParameterList saveParams = ioPlugin->initSaveParameter(extension, m);
|
||||
|
||||
ioPlugin->save(extension, fileName, m, capability, saveParams, cb);
|
||||
if (defaultBits & vcg::tri::io::Mask::IOM_BITPOLYGONAL)
|
||||
m.updateDataMask(MeshModel::MM_FACEFACETOPO);
|
||||
ioPlugin->save(extension, fileName, m, defaultBits, saveParams, cb);
|
||||
m.setFileName(fileName);
|
||||
m.saveTextures(fi.absolutePath(), -1, log, cb);
|
||||
}
|
||||
|
||||
@ -2461,6 +2461,8 @@ bool MainWindow::exportMesh(QString fileName,MeshModel* mod,const bool saveAllPo
|
||||
qb->reset();
|
||||
|
||||
try {
|
||||
if (mask & vcg::tri::io::Mask::IOM_BITPOLYGONAL)
|
||||
mod->updateDataMask(MeshModel::MM_FACEFACETOPO);
|
||||
pCurrentIOPlugin->save(extension, fileName, *mod ,mask,savePar,QCallBack);
|
||||
QFileInfo finfo(fileName);
|
||||
if (saveTextures)
|
||||
|
||||
@ -459,8 +459,6 @@ void BaseMeshIOPlugin::save(const QString &formatName, const QString &fileName,
|
||||
}
|
||||
else if (formatName.toUpper() == tr("OFF"))
|
||||
{
|
||||
if (mask & tri::io::Mask::IOM_BITPOLYGONAL)
|
||||
m.updateDataMask(MeshModel::MM_FACEFACETOPO);
|
||||
int result = tri::io::ExporterOFF<CMeshO>::Save(m.cm, filename.c_str(), mask);
|
||||
if (result != 0)
|
||||
{
|
||||
@ -474,7 +472,6 @@ void BaseMeshIOPlugin::save(const QString &formatName, const QString &fileName,
|
||||
|
||||
if (mask & tri::io::Mask::IOM_BITPOLYGONAL)
|
||||
{
|
||||
m.updateDataMask(MeshModel::MM_FACEFACETOPO);
|
||||
PMesh pm;
|
||||
tri::PolygonSupport<CMeshO, PMesh>::ImportFromTriMesh(pm, m.cm);
|
||||
result = tri::io::ExporterOBJ<PMesh>::Save(pm, filename.c_str(), mask, cb);
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 094918662bb7819332f2d2b3f7986a7ec62ecdf7
|
||||
Subproject commit 0f320aa6710d60e2940432d07757ef91d835e19c
|
||||
Loading…
x
Reference in New Issue
Block a user