mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Further updates to AMI functionality
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user