mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: additional boundBox methods (issue #714)
- boundBox::nDim() to assess dimensionality - boundBox::intersect(const plane&) to test if plane intersects the bounding box
This commit is contained in:
@ -222,7 +222,7 @@ const Foam::wordList& Foam::searchableBox::regions() const
|
||||
|
||||
Foam::tmp<Foam::pointField> Foam::searchableBox::coordinates() const
|
||||
{
|
||||
tmp<pointField> tCtrs = tmp<pointField>(new pointField(6));
|
||||
tmp<pointField> tCtrs(new pointField(6));
|
||||
pointField& ctrs = tCtrs.ref();
|
||||
|
||||
const pointField pts(treeBoundBox::points());
|
||||
|
||||
@ -324,7 +324,7 @@ Foam::label Foam::searchableSurfaceCollection::size() const
|
||||
Foam::tmp<Foam::pointField>
|
||||
Foam::searchableSurfaceCollection::coordinates() const
|
||||
{
|
||||
tmp<pointField> tCtrs = tmp<pointField>(new pointField(size()));
|
||||
tmp<pointField> tCtrs(new pointField(size()));
|
||||
pointField& ctrs = tCtrs.ref();
|
||||
|
||||
// Append individual coordinates
|
||||
|
||||
Reference in New Issue
Block a user