mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: autoSnapDriverFeature: protect for zero sized faces
This commit is contained in:
@ -767,7 +767,7 @@ void Foam::autoSnapDriver::binFeatureFace
|
|||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
// What to do with very far attraction? For now just ignore the face
|
// 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;
|
const point pt = fc + faceDisp;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user