Public Types | Static Public Member Functions | Static Public Attributes | Static Private Attributes
intersection Class Reference

Foam::intersection. More...

Collaboration diagram for intersection:
Collaboration graph
[legend]

Public Types

enum  direction { VECTOR, CONTACT_SPHERE }
 
enum  algorithm { FULL_RAY, HALF_RAY, VISIBLE }
 

Static Public Member Functions

static scalar planarTol ()
 Return planar tolerance. More...
 
static scalar setPlanarTol (const scalar t)
 Set the planar tolerance, returning the previous value. More...
 

Static Public Attributes

static const NamedEnum< direction, 2 > directionNames_
 Direction names. More...
 
static const NamedEnum< algorithm, 3 > algorithmNames_
 Projection algorithm names. More...
 

Static Private Attributes

static scalar planarTol_ = 0.2
 Relative tolerance for point in a plane. More...
 

Detailed Description

Foam::intersection.

Source files

Definition at line 49 of file intersection.H.

Member Enumeration Documentation

◆ direction

enum direction
Enumerator
VECTOR 
CONTACT_SPHERE 

Definition at line 63 of file intersection.H.

◆ algorithm

enum algorithm
Enumerator
FULL_RAY 
HALF_RAY 
VISIBLE 

Definition at line 69 of file intersection.H.

Member Function Documentation

◆ planarTol()

static scalar planarTol ( )
inlinestatic

Return planar tolerance.

Definition at line 85 of file intersection.H.

References intersection::planarTol_.

Referenced by surfaceIntersection::surfaceIntersection().

Here is the caller graph for this function:

◆ setPlanarTol()

static scalar setPlanarTol ( const scalar  t)
inlinestatic

Set the planar tolerance, returning the previous value.

Definition at line 91 of file intersection.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and intersection::planarTol_.

Referenced by treeDataCell::findIntersectOp::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ planarTol_

Foam::scalar planarTol_ = 0.2
staticprivate

Relative tolerance for point in a plane.

The tolerance is relative to the object size. Used to determine if a half-ray from a point in plane of triangle intersects the triangle or not.

Definition at line 59 of file intersection.H.

Referenced by intersection::planarTol(), and intersection::setPlanarTol().

◆ directionNames_

const Foam::NamedEnum< Foam::intersection::direction, 2 > directionNames_
static

Direction names.

Definition at line 79 of file intersection.H.

◆ algorithmNames_

const Foam::NamedEnum< Foam::intersection::algorithm, 3 > algorithmNames_
static

Projection algorithm names.

Definition at line 82 of file intersection.H.

Referenced by slidingInterface::writeDict().


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