Avoid creating a plane with zero normal
This commit is contained in:
parent
0fb2b08722
commit
9109d2953e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue