Commit 0a65b142 authored by mattijs's avatar mattijs
Browse files

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

parent 2183907a
......@@ -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);
......
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