FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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>


Detailed Description

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.).

Source files

Definition at line 61 of file edgeIntersections.H.

Inheritance diagram for edgeIntersections:
Collaboration diagram for edgeIntersections:

List of all members.

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

Constructor & Destructor Documentation

Construct null.

Definition at line 482 of file edgeIntersections.C.

edgeIntersections ( const triSurface &   surf1,
const triSurfaceSearch &   query2,
const scalarField &   surf1PointTol  
)
edgeIntersections ( const List< List< pointIndexHit > > &   intersections,
const labelListList &   classification  
)

Construct from components.

Definition at line 526 of file edgeIntersections.C.


Member Function Documentation

ClassName ( "edgeIntersections"    )
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().


Member Data Documentation

Foam::scalar alignedCos_ [static]
Initial value:

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.


The documentation for this class was generated from the following files: