Commit b15cf812 authored by mattijs's avatar mattijs
Browse files

ENH: autoSnapDriverFeature: protect for zero sized faces

parent 134f9ff4
......@@ -767,7 +767,7 @@ void Foam::autoSnapDriver::binFeatureFace
) const
// What to do with very far attraction? For now just ignore the face
if (magSqr(faceDisp) < sqr(snapDist))
if (magSqr(faceDisp) < sqr(snapDist) && mag(faceSurfaceNormal) > VSMALL)
const point pt = fc + faceDisp;
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