version with inverted x

This commit is contained in:
granzuglia 2007-12-19 14:06:06 +00:00
parent e16f9b17df
commit a2c06f93f4
2 changed files with 6 additions and 3 deletions

View File

@ -244,7 +244,7 @@ typedef typename SaveMeshType::CoordType CoordType;
idtf.write(3,"MODEL_POSITION_LIST {");
vcg::tri::UpdateBounding<SaveMeshType>::Box(m);
//ScalarType diag = m.bbox.Diag();
CoordType center = m.bbox.Center();
//CoordType center = m.bbox.Center();
for(ConstVertexIterator vit = m.vert.begin();vit != m.vert.end();++vit)
{
CoordType tmp = vit->P();// - center);// /diag;
@ -260,7 +260,7 @@ typedef typename SaveMeshType::CoordType CoordType;
for(unsigned int ii = 0;ii < 3;++ii)
{
fitn->N().Normalize();
idtf.write(4,TextUtility::nmbToStr(fitn->N().X()) + " " +
idtf.write(4,TextUtility::nmbToStr(-fitn->N().X()) + " " +
TextUtility::nmbToStr(fitn->N().Z()) + " " +
TextUtility::nmbToStr(fitn->N().Y()));
}

View File

@ -242,6 +242,9 @@ private:
QStringList file_trim;
QtUtilityFunctions::splitFilePath(u3df,file_trim);
std::string u3d_final = QtUtilityFunctions::fileNameFromTrimmedPath(file_trim).toStdString();
latex.write(0,"\\documentclass[a4paper]{article}");
latex.write(0,"\\usepackage[3D]{movie15}");
latex.write(0,"\\usepackage[UKenglish]{babel}");
latex.write(0,"\\begin{document}");
latex.write(0,"\\includemovie[");
latex.write(1,"poster,");
@ -259,7 +262,7 @@ private:
", 3Dcoo=" + TextUtility::nmbToStr(-cam->_obj_pos.X()) + " " + TextUtility::nmbToStr(cam->_obj_pos.Z()) + " " + TextUtility::nmbToStr(cam->_obj_pos.Y()) + ",";
latex.write(1,cam_string);
}
latex.write(1,"3Dlights=File,");
latex.write(1,"3Dlights=CAD,");
latex.write(0,"]{\\linewidth}{\\linewidth}{" + u3d_final + "}");
latex.write(0,"\\end{document}");
}