Added UpdatePosition::Translate

This commit is contained in:
Paolo Cignoni 2011-06-03 08:32:27 +00:00
parent 477767ab77
commit 3d4ae1b506
1 changed files with 7 additions and 0 deletions

View File

@ -73,6 +73,13 @@ static void Matrix(ComputeMeshType &m, const Matrix44<ScalarType> &M, bool updat
}
}
static void Translate(ComputeMeshType &m, const Point3<ScalarType> &t)
{
VertexIterator vi;
for(vi=m.vert.begin();vi!=m.vert.end();++vi)
if(!(*vi).IsD()) (*vi).P()+=t;
}
}; // end class