mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: tetOverlapVolume - no overelap when volumes are zero
This commit is contained in:
@ -64,6 +64,11 @@ Foam::scalar Foam::tetOverlapVolume::tetTetOverlapVol
|
||||
tetPointRef::sumVolOp volInside;
|
||||
tetPointRef::dummyOp outside;
|
||||
|
||||
if ((tetA.tet().mag() < SMALL) || (tetB.tet().mag() < SMALL))
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
// face0
|
||||
plane pl0(tetB[1], tetB[3], tetB[2]);
|
||||
tetA.tet().sliceWithPlane(pl0, cutInside, outside);
|
||||
|
||||
Reference in New Issue
Block a user