Avoid creating a plane with zero normal

This commit is contained in:
Hrvoje Jasak 2014-05-19 16:41:22 +01:00
parent 0fb2b08722
commit 9109d2953e

View file

@ -578,7 +578,7 @@ tmp<pointField> GGIInterpolation<MasterPatch, SlavePatch>::projectPointsOnPlane
scalarField dist(lpoints.size(), 0.0);
if (lpoints.size() > 3)
if (lpoints.size() > 3 && mag(normalVector) > SMALL)
{
// Construct the plane
plane projectionPlane(planeOrig, normalVector);