BUG: foamyHexMesh: Missing include and find all intersections function

This commit is contained in:
laurence
2013-09-06 17:03:41 +01:00
parent 0df0edf359
commit 6ffcc03de1
3 changed files with 45 additions and 0 deletions

View File

@ -40,6 +40,7 @@ License
#include "polyModifyFace.H"
#include "syncTools.H"
#include "regionSplit.H"
#include "OBJstream.H"
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //

View File

@ -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,

View File

@ -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
(