Commit 956bb80f authored by laurence's avatar laurence
Browse files

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

parent 9064e37d
......@@ -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,
......
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