ENH: use boundBox building blocks in misc places

This commit is contained in:
Mark Olesen
2022-10-10 19:16:11 +02:00
parent 61deacd24d
commit 18eeba116a
5 changed files with 15 additions and 69 deletions

View File

@ -167,14 +167,7 @@ void Foam::backgroundMeshDecomposition::initialRefinement()
{
if (volumeStatus[celli] == volumeType::UNKNOWN)
{
treeBoundBox cellBb
(
mesh_.cells()[celli].points
(
mesh_.faces(),
mesh_.points()
)
);
treeBoundBox cellBb(mesh_.cells()[celli].box(mesh_));
if (geometry.overlaps(cellBb))
{
@ -286,14 +279,7 @@ void Foam::backgroundMeshDecomposition::initialRefinement()
{
if (volumeStatus[celli] == volumeType::UNKNOWN)
{
treeBoundBox cellBb
(
mesh_.cells()[celli].points
(
mesh_.faces(),
mesh_.points()
)
);
treeBoundBox cellBb(mesh_.cells()[celli].box(mesh_));
if (geometry.overlaps(cellBb))
{
@ -512,14 +498,7 @@ bool Foam::backgroundMeshDecomposition::refineCell
// const conformationSurfaces& geometry = geometryToConformTo_;
treeBoundBox cellBb
(
mesh_.cells()[celli].points
(
mesh_.faces(),
mesh_.points()
)
);
treeBoundBox cellBb(mesh_.cells()[celli].box(mesh_));
weightEstimate = 1.0;

View File

@ -83,8 +83,7 @@ Foam::searchableBoxFeatures::features() const
{
autoPtr<extendedFeatureEdgeMesh> features;
List<vector> faceNormalsList(treeBoundBox::faceNormals);
vectorField faceNormals(faceNormalsList);
vectorField faceNormals(List<vector>(treeBoundBox::faceNormals));
vectorField edgeDirections(12);
labelListList normalDirections(12);