From eb826a15e5fd36998317a05c42b7c66c7641b340 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Sun, 22 Jan 2006 16:43:32 +0000 Subject: [PATCH] added update bbox and normal after transform dialog --- src/meshlabplugins/meshfilter/meshfilter.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/meshlabplugins/meshfilter/meshfilter.cpp b/src/meshlabplugins/meshfilter/meshfilter.cpp index a0bf16730..b37df6cc7 100644 --- a/src/meshlabplugins/meshfilter/meshfilter.cpp +++ b/src/meshlabplugins/meshfilter/meshfilter.cpp @@ -21,6 +21,9 @@ /**************************************************************************** History $Log$ +Revision 1.46 2006/01/22 16:43:32 mariolatronico +added update bbox and normal after transform dialog + Revision 1.45 2006/01/22 14:11:04 mariolatronico added scale to unit box, move obj center. Rotate around object and origin are not working actually. @@ -109,6 +112,7 @@ added refine dialog (preliminary code). Actually parameters are not used #include #include #include +#include ///////////// #include "invert_faces.h" @@ -406,8 +410,7 @@ bool ExtraMeshFilterPlugin::applyFilter(QAction *filter, MeshModel &m, QWidget * } if (filter->text() == ST(FP_TRANSFORM) ) { - if (transformDialog) - transformDialog->setMesh(&m.cm); + transformDialog->setMesh(&m.cm); int continueValue = transformDialog->exec(); if (continueValue == QDialog::Rejected) return false; @@ -417,7 +420,8 @@ bool ExtraMeshFilterPlugin::applyFilter(QAction *filter, MeshModel &m, QWidget * transformDialog->getLog().toAscii().data()); } vcg::tri::UpdatePosition::Matrix(m.cm, matrix); - //// TODO : need update normal + vcg::tri::UpdateNormals::PerVertexNormalizedPerFace(m.cm); + vcg::tri::UpdateBounding::Box(m.cm); } if (filter->text() == ST(FP_DETACHER) ) {