Skip to content
Snippets Groups Projects
Commit 956bb80f authored by laurence's avatar laurence
Browse files

ENH: Add intersection function with same signature as the function in face

parent 9064e37d
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -169,6 +169,16 @@ public:
const scalar tol = 0.0
) const;
inline pointHit intersection
(
const point& p,
const vector& q,
const point& ctr,
const pointField& points,
const intersection::algorithm alg,
const scalar tol = 0.0
) const;
//- Return nearest point to face
inline pointHit nearestPoint
(
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -273,6 +273,20 @@ inline Foam::pointHit Foam::triFace::intersection
}
inline Foam::pointHit Foam::triFace::intersection
(
const point& p,
const vector& q,
const point& ctr,
const pointField& points,
const intersection::algorithm alg,
const scalar tol
) const
{
return intersection(p, q, points, alg, tol);
}
inline Foam::pointHit Foam::triFace::nearestPoint
(
const point& p,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment