added quality parameter
This commit is contained in:
parent
d014eae1bc
commit
633e7b97e4
|
@ -22,6 +22,7 @@ namespace u3dparametersclasses
|
||||||
const QString _converter_loc;
|
const QString _converter_loc;
|
||||||
const QString _input_file;
|
const QString _input_file;
|
||||||
const QString _output_file;
|
const QString _output_file;
|
||||||
|
int positionQuality;
|
||||||
|
|
||||||
IDTFConverterParameters(const QString& converter_loc,const QString& input_file,const QString& output_file)
|
IDTFConverterParameters(const QString& converter_loc,const QString& input_file,const QString& output_file)
|
||||||
:_converter_loc(converter_loc),_input_file(input_file),_output_file(output_file)
|
:_converter_loc(converter_loc),_input_file(input_file),_output_file(output_file)
|
||||||
|
@ -70,6 +71,7 @@ namespace u3dparametersclasses
|
||||||
|
|
||||||
};
|
};
|
||||||
CameraParameters* _campar;
|
CameraParameters* _campar;
|
||||||
|
int positionQuality;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,10 +111,11 @@ private:
|
||||||
QProcess p;
|
QProcess p;
|
||||||
QString convstring = par._converter_loc;
|
QString convstring = par._converter_loc;
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
convstring = "\""+convstring + "\" -en 1 -input \"" + par._input_file + "\" -output \"" + par._output_file +"\"";
|
convstring = "\""+convstring + "\" -en 1 -rzf 0 -pq "+QString::number(par.positionQuality)+" -input \"" + par._input_file + "\" -output \"" + par._output_file +"\"";
|
||||||
#else
|
#else
|
||||||
convstring = convstring + " -en 1 -input \"" + par._input_file + "\" -output \"" + par._output_file +"\"";
|
convstring = convstring + " -en 1 -rzf 0 -pq "+ QString::number(par.positionQuality)+" -input \"" + par._input_file + "\" -output \"" + par._output_file +"\"";
|
||||||
#endif
|
#endif
|
||||||
|
//QMessageBox::warning(0, QString("Saving Log"), QString("Started conversion executable '%1'").arg(convstring));
|
||||||
qDebug("Starting converter %s", qPrintable(convstring));
|
qDebug("Starting converter %s", qPrintable(convstring));
|
||||||
p.setProcessChannelMode(QProcess::MergedChannels);
|
p.setProcessChannelMode(QProcess::MergedChannels);
|
||||||
p.start(convstring);
|
p.start(convstring);
|
||||||
|
@ -189,6 +192,7 @@ public:
|
||||||
|
|
||||||
vcg::tri::io::ExporterIDTF<SaveMeshType>::Save(m,qPrintable(tmp),mask);
|
vcg::tri::io::ExporterIDTF<SaveMeshType>::Save(m,qPrintable(tmp),mask);
|
||||||
u3dparametersclasses::IDTFConverterParameters idtfpar(conv_loc_st,tmp,output_file_st);
|
u3dparametersclasses::IDTFConverterParameters idtfpar(conv_loc_st,tmp,output_file_st);
|
||||||
|
idtfpar.positionQuality = mov_par.positionQuality;
|
||||||
qDebug("conv_loc_st '%s'", qPrintable(conv_loc_st));
|
qDebug("conv_loc_st '%s'", qPrintable(conv_loc_st));
|
||||||
qDebug("conv_loc '%s'", conv_loc);
|
qDebug("conv_loc '%s'", conv_loc);
|
||||||
qDebug("idtfpar._converter_loc '%s'", qPrintable(idtfpar._converter_loc));
|
qDebug("idtfpar._converter_loc '%s'", qPrintable(idtfpar._converter_loc));
|
||||||
|
|
Loading…
Reference in New Issue