BUG: MeshSurface: no clearout of topology upon movePoints

This commit is contained in:
mattijs
2011-11-08 16:37:55 +00:00
parent 24b3b3e1a9
commit d1cf3b3fdb

View File

@ -491,9 +491,6 @@ void Foam::MeshedSurface<Face>::clear()
template<class Face>
void Foam::MeshedSurface<Face>::movePoints(const pointField& newPoints)
{
// Remove all geometry dependent data
ParentType::clearTopology();
// Adapt for new point position
ParentType::movePoints(newPoints);
@ -508,13 +505,12 @@ void Foam::MeshedSurface<Face>::scalePoints(const scalar scaleFactor)
// avoid bad scaling
if (scaleFactor > 0 && scaleFactor != 1.0)
{
// Remove all geometry dependent data
ParentType::clearTopology();
pointField newPoints(scaleFactor*this->points());
// Adapt for new point position
ParentType::movePoints(pointField());
ParentType::movePoints(newPoints);
storedPoints() *= scaleFactor;
storedPoints() = newPoints;
}
}