BUG: snappyHexMesh: calculate surface normals if face splitting. Fixes #522.

This commit is contained in:
mattijs
2017-07-12 10:58:21 +01:00
parent 2183907afe
commit 0a65b142cf

View File

@ -2750,13 +2750,13 @@ void Foam::snappySnapDriver::doSnap
motionSmoother& meshMover = meshMoverPtr();
// Calculate displacement at every patch point. Insert into
// meshMover.
// Calculate displacement at every patch point
// Calculate displacement at every patch point if we need it:
// - if automatic near-surface detection
// - if face splitting active
pointField nearestPoint;
vectorField nearestNormal;
if (snapParams.detectNearSurfacesSnap())
if (snapParams.detectNearSurfacesSnap() || doSplit)
{
nearestPoint.setSize(pp.nPoints(), vector::max);
nearestNormal.setSize(pp.nPoints(), Zero);