boundBox, octree cleanup

- added boundBox(const tmp<pointField>&) constructor for use with
    coordinate systems
  - moved some methods from treeBoundBox to boundBox and use VectorSpace ops
This commit is contained in:
Mark Olesen
2009-01-01 17:03:19 +01:00
parent 28b200bcd9
commit 973b9ea0ce
38 changed files with 813 additions and 976 deletions

View File

@ -81,7 +81,7 @@ void meshToMesh::calcAddressing()
{
// get reference to cells next to the boundary
const unallocLabelList& bCells = patchesFrom[patchI].faceCells();
forAll (bCells, faceI)
{
boundaryCell[bCells[faceI]] = true;
@ -171,7 +171,7 @@ void meshToMesh::calcAddressing()
else
{
treeBoundBox wallBb(fromPatch.localPoints());
scalar typDim =
scalar typDim =
wallBb.avgDim()/(2.0*sqrt(scalar(fromPatch.size())));
treeBoundBox shiftedBb
@ -193,7 +193,7 @@ void meshToMesh::calcAddressing()
);
const vectorField::subField centresToBoundary =
const vectorField::subField centresToBoundary =
toPatch.faceCentres();
boundaryAddressing_[patchi].setSize(toPatch.size());
@ -268,7 +268,7 @@ void meshToMesh::cellAddresses
forAll (neighbours, nI)
{
scalar curDistSqr =
scalar curDistSqr =
magSqr(p - centresFrom[neighbours[nI]]);
// search through all the neighbours.