Commit fa748aad authored by laurence's avatar laurence
Browse files

Merge branch 'feature/foamyHexMesh-baffles'

parents 19df5f69 6ffcc03d
......@@ -40,6 +40,7 @@ License
#include "polyModifyFace.H"
#include "syncTools.H"
#include "regionSplit.H"
#include "OBJstream.H"
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
......
......@@ -872,6 +872,42 @@ void Foam::conformationSurfaces::findSurfaceAnyIntersection
}
void Foam::conformationSurfaces::findSurfaceAllIntersections
(
const point& start,
const point& end,
List<pointIndexHit>& surfHit,
labelList& hitSurface
) const
{
labelListList hitSurfaces;
List<List<pointIndexHit> > hitInfo;
searchableSurfacesQueries::findAllIntersections
(
allGeometry_,
surfaces_,
pointField(1, start),
pointField(1, end),
hitSurfaces,
hitInfo
);
surfHit = hitInfo[0];
hitSurface.setSize(hitSurfaces[0].size());
forAll(hitSurfaces[0], surfI)
{
// hitSurfaces has returned the index of the entry in surfaces_ that was
// found, not the index of the surface in allGeometry_, translating this
// to allGeometry_
hitSurface[surfI] = surfaces_[hitSurfaces[0][surfI]];
}
}
void Foam::conformationSurfaces::findSurfaceNearestIntersection
(
const point& start,
......
......@@ -257,6 +257,14 @@ public:
label& hitSurface
) const;
void findSurfaceAllIntersections
(
const point& start,
const point& end,
List<pointIndexHit>& surfHit,
labelList& hitSurface
) const;
//- Finding the nearestIntersection of the surface to start
void findSurfaceNearestIntersection
(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment