mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Check if surface conformation point is inside the surface geometry
This commit is contained in:
@ -599,7 +599,7 @@ private:
|
||||
pointIndexHitAndFeatureList& surfaceHits
|
||||
);
|
||||
|
||||
bool locationConformsToInside
|
||||
bool surfaceLocationConformsToInside
|
||||
(
|
||||
const pointIndexHitAndFeature& info
|
||||
) const;
|
||||
|
||||
@ -808,13 +808,11 @@ Foam::label Foam::conformalVoronoiMesh::synchroniseEdgeTrees
|
||||
}
|
||||
|
||||
|
||||
bool Foam::conformalVoronoiMesh::locationConformsToInside
|
||||
bool Foam::conformalVoronoiMesh::surfaceLocationConformsToInside
|
||||
(
|
||||
const pointIndexHitAndFeature& info
|
||||
) const
|
||||
{
|
||||
bool keepLocation = true;
|
||||
|
||||
if (info.first().hit())
|
||||
{
|
||||
vectorField norm(1);
|
||||
@ -833,15 +831,13 @@ bool Foam::conformalVoronoiMesh::locationConformsToInside
|
||||
|
||||
if (!geometryToConformTo_.inside(innerPoint))
|
||||
{
|
||||
keepLocation = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
keepLocation = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return keepLocation;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -995,7 +991,7 @@ bool Foam::conformalVoronoiMesh::dualCellSurfaceAllIntersections
|
||||
|
||||
bool rejectPoint = false;
|
||||
|
||||
if (!locationConformsToInside(info))
|
||||
if (!surfaceLocationConformsToInside(info))
|
||||
{
|
||||
rejectPoint = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user