Holder of intersections of edges of a surface with another surface. Optionally shuffles around points on surface to resolve any 'conflicts' (edge hitting triangle edge, edge hitting point etc.). More...
#include <meshTools/edgeIntersections.H>
Holder of intersections of edges of a surface with another surface. Optionally shuffles around points on surface to resolve any 'conflicts' (edge hitting triangle edge, edge hitting point etc.).
Definition at line 61 of file edgeIntersections.H.
Public Member Functions | |
ClassName ("edgeIntersections") | |
edgeIntersections () | |
Construct null.
| |
edgeIntersections (const triSurface &surf1, const triSurfaceSearch &query2, const scalarField &surf1PointTol) | |
Construct from surface and tolerance.
| |
edgeIntersections (const List< List< pointIndexHit > > &, const labelListList &) | |
Construct from components.
| |
const labelListList & | classification () const |
For every intersection the classification status.
| |
label | removeDegenerates (const label nIters, const triSurface &surf1, const triSurfaceSearch &query2, const scalarField &surf1PointTol, pointField &points1) |
Resolve ties. Shuffles points so all edge - face intersections.
| |
Static Public Member Functions | |
static scalarField | minEdgeLength (const triSurface &surf) |
Calculate min edge length for every surface point.
| |
Static Public Attributes | |
static scalar | alignedCos_ |
cosine between edge and face normal when considered parallel
|
Construct null.
Definition at line 482 of file edgeIntersections.C.
edgeIntersections | ( | const triSurface & | surf1, |
const triSurfaceSearch & | query2, | ||
const scalarField & | surf1PointTol | ||
) |
Construct from surface and tolerance.
Definition at line 491 of file edgeIntersections.C.
References forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::nEdges(), PrimitivePatch< Face, FaceList, PointField, PointType >::points(), and triSurfaceSearch::surface().
edgeIntersections | ( | const List< List< pointIndexHit > > & | intersections, |
const labelListList & | classification | ||
) |
Construct from components.
Definition at line 526 of file edgeIntersections.C.
ClassName | ( | "edgeIntersections" | ) |
Foam::scalarField minEdgeLength | ( | const triSurface & | surf ) | [static]
|
Calculate min edge length for every surface point.
Definition at line 538 of file edgeIntersections.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::localPoints(), Foam::mag(), Foam::min(), PrimitivePatch< Face, FaceList, PointField, PointType >::pointEdges(), and List< T >::size().
const labelListList& classification | ( | ) | const [inline]
|
For every intersection the classification status.
Definition at line 178 of file edgeIntersections.H.
Foam::label removeDegenerates | ( | const label | nIters, |
const triSurface & | surf1, | ||
const triSurfaceSearch & | query2, | ||
const scalarField & | surf1PointTol, | ||
pointField & | points1 | ||
) |
Resolve ties. Shuffles points so all edge - face intersections.
will be on the face interior. Points will be the new surface points. Returns number of iterations needed. (= nIters if still has degenerate cuts)
Definition at line 566 of file edgeIntersections.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::nEdges(), Foam::nl, Foam::Pout, and triSurfaceSearch::surface().
Foam::scalar alignedCos_ [static]
|
Foam::cos(89.0 * Foam::mathematicalConstant::pi/180.0)
cosine between edge and face normal when considered parallel
(note: should be private and make access- and set- function)
Definition at line 142 of file edgeIntersections.H.