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

orientedSurface Class Reference

Given point flip all faces such that normals point in same direction. More...

#include <meshTools/orientedSurface.H>


Detailed Description

Given point flip all faces such that normals point in same direction.

Source files

Definition at line 52 of file orientedSurface.H.

Inheritance diagram for orientedSurface:
Collaboration diagram for orientedSurface:

List of all members.

Public Member Functions

 ClassName ("orientedSurface")
 orientedSurface ()
 Construct null.
 orientedSurface (const triSurface &, const point &samplePoint, const bool orientOutside=true)
 Construct from triSurface and sample point which is either.
 orientedSurface (const triSurface &, const bool orientOutside=true)
 Construct from triSurface. Calculates outside point as being.

Static Public Member Functions

static bool  orient (triSurface &, const point &, const bool orientOutside)
 Flip faces such that normals are consistent with point:

Constructor & Destructor Documentation

Construct null.

Definition at line 322 of file orientedSurface.C.

orientedSurface ( const triSurface &   surf,
const point &   samplePoint,
const bool   orientOutside = true  
)

Construct from triSurface and sample point which is either.

outside (orientOutside = true) or inside (orientOutside = false). Uses linear search to find nearest.

Definition at line 330 of file orientedSurface.C.

orientedSurface ( const triSurface &   surf,
const bool   orientOutside = true  
)

Construct from triSurface. Calculates outside point as being.

outside the bounding box of the surface.

Definition at line 344 of file orientedSurface.C.

References Vector< Cmpt >::max, PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), and PrimitivePatch< Face, FaceList, PointField, PointType >::points().


Member Function Documentation

ClassName ( "orientedSurface"    )
bool orient ( triSurface &   s,
const point &   samplePoint,
const bool   orientOutside  
) [static]

Flip faces such that normals are consistent with point:

orientOutside=true : point outside surface orientOutside=false : point inside surface

Definition at line 363 of file orientedSurface.C.

References PointHit< Point >::distance(), forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::points(), PointHit< Point >::rawPoint(), and List< T >::size().


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