Commit d1cf3b3f authored by mattijs's avatar mattijs
Browse files

BUG: MeshSurface: no clearout of topology upon movePoints

parent 24b3b3e1
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment