fixed right-hand/left-hand coordinates system's bug

This commit is contained in:
granzuglia 2007-12-11 13:00:35 +00:00
parent 7d6a210e75
commit 40409390c7
2 changed files with 5 additions and 4 deletions

View File

@ -151,9 +151,10 @@ typedef typename SaveMeshType::CoordType CoordType;
idtf.write(3,"MESH_FACE_POSITION_LIST {");
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())) + " " +
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,"}");

View File

@ -108,7 +108,7 @@ private:
{
QProcess p;
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));
p.setProcessChannelMode(QProcess::MergedChannels);
p.start(convstring);
@ -171,7 +171,7 @@ public:
QStringList l = lat.split(".");
SaveLatex(m,l[0],mov_par);
QDir dir(QDir::tempPath());
dir.remove(tmp);
//dir.remove(tmp);
if (res)
return 0;