ENH: Further updates to AMI functionality

This commit is contained in:
andy
2011-07-21 17:48:20 +01:00
parent 4ee5d991b8
commit a372dbfb53
16 changed files with 1000 additions and 326 deletions

View File

@ -165,16 +165,10 @@ Foam::tmp<Foam::pointField> Foam::boundBox::points() const
void Foam::boundBox::inflate(const scalar s)
{
boundBox bb(*this);
vector ext = vector::one*s*mag();
vector dir = bb.span();
scalar magDir = Foam::mag(dir);
dir /= magDir;
scalar ext = s*magDir;
min_ -= dir*ext;
max_ += dir*ext;
min_ -= ext;
max_ += ext;
}