From 3d4ae1b50676f626e2de885d52b222c6d2deacad Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 3 Jun 2011 08:32:27 +0000 Subject: [PATCH] Added UpdatePosition::Translate --- vcg/complex/algorithms/update/position.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vcg/complex/algorithms/update/position.h b/vcg/complex/algorithms/update/position.h index 23fd8021..129b502f 100644 --- a/vcg/complex/algorithms/update/position.h +++ b/vcg/complex/algorithms/update/position.h @@ -73,6 +73,13 @@ static void Matrix(ComputeMeshType &m, const Matrix44 &M, bool updat } } +static void Translate(ComputeMeshType &m, const Point3 &t) +{ + VertexIterator vi; + for(vi=m.vert.begin();vi!=m.vert.end();++vi) + if(!(*vi).IsD()) (*vi).P()+=t; +} + }; // end class