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