fixed right-hand/left-hand coordinates system's bug
This commit is contained in:
parent
7d6a210e75
commit
40409390c7
|
@ -151,9 +151,10 @@ typedef typename SaveMeshType::CoordType CoordType;
|
||||||
idtf.write(3,"MESH_FACE_POSITION_LIST {");
|
idtf.write(3,"MESH_FACE_POSITION_LIST {");
|
||||||
for(ConstFaceIterator fit = m.face.begin();fit != m.face.end();++fit)
|
for(ConstFaceIterator fit = m.face.begin();fit != m.face.end();++fit)
|
||||||
{
|
{
|
||||||
|
//WARNING: U3D uses a left-oriented coordinates system (Z-Y have been swapped) so you have to reverse the vertices' order
|
||||||
idtf.write(4,TextUtility::nmbToStr(fit->V(0) - &(*m.vert.begin())) + " " +
|
idtf.write(4,TextUtility::nmbToStr(fit->V(0) - &(*m.vert.begin())) + " " +
|
||||||
TextUtility::nmbToStr(fit->V(1) - &(*m.vert.begin())) + " " +
|
TextUtility::nmbToStr(fit->V(2) - &(*m.vert.begin())) + " " +
|
||||||
TextUtility::nmbToStr(fit->V(2) - &(*m.vert.begin())));
|
TextUtility::nmbToStr(fit->V(1) - &(*m.vert.begin())));
|
||||||
}
|
}
|
||||||
idtf.write(3,"}");
|
idtf.write(3,"}");
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ private:
|
||||||
{
|
{
|
||||||
QProcess p;
|
QProcess p;
|
||||||
QString convstring = par._converter_loc;
|
QString convstring = par._converter_loc;
|
||||||
convstring = convstring + " -input " + par._input_file + " -output " + par._output_file;
|
convstring = convstring + " -en1 -input " + par._input_file + " -output " + par._output_file;
|
||||||
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);
|
||||||
|
@ -171,7 +171,7 @@ public:
|
||||||
QStringList l = lat.split(".");
|
QStringList l = lat.split(".");
|
||||||
SaveLatex(m,l[0],mov_par);
|
SaveLatex(m,l[0],mov_par);
|
||||||
QDir dir(QDir::tempPath());
|
QDir dir(QDir::tempPath());
|
||||||
dir.remove(tmp);
|
//dir.remove(tmp);
|
||||||
|
|
||||||
if (res)
|
if (res)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue