mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use boundBox building blocks in misc places
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user