OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

plane Class Reference

Geometric class that creates a 2D plane and can return the intersection point between a line and the plane. More...

Inheritance diagram for plane:
Collaboration diagram for plane:

List of all members.


Classes

class  ray
 A direction and a reference point. More...

Public Member Functions

 plane (const vector &normalVector)
 Construct from normal vector through the origin.
 plane (const point &basePoint, const vector &normalVector)
 Construct from normal vector and point in plane.
 plane (const point &point1, const point &point2, const point &point3)
 Construct from three points in plane.
 plane (const scalarList &C)
 Construct from coefficients for the.
 plane (const dictionary &planeDict)
 Construct from dictionary.
 plane (Istream &is)
 Construct from Istream. Assumes the base + normal notation.
const vector & normal () const
 Return plane normal.
const point & refPoint () const
 Return or return plane base point.
scalarList planeCoeffs () const
 Return coefficients for the.
point nearestPoint (const point &p) const
 Return nearest point in the plane for the given point.
scalar distance (const point &p) const
 Return distance from the given point to the plane.
scalar normalIntersect (const point &pnt0, const vector &dir) const
 Return cut coefficient for plane and line defined by.
scalar normalIntersect (const ray &r) const
 Return cut coefficient for plane and ray.
template<class Point , class PointRef >
scalar lineIntersect (const line< Point, PointRef > &l) const
 Return the cutting point between the plane and.
ray planeIntersect (const plane &) const
 Return the cutting line between this plane and another.
point planePlaneIntersect (const plane &, const plane &) const
 Return the cutting point between this plane and two other planes.

Friends

bool operator== (const plane &, const plane &)
bool operator!= (const plane &, const plane &)
Ostream & operator<< (Ostream &, const plane &)
 Write plane properties.

Detailed Description

Geometric class that creates a 2D plane and can return the intersection point between a line and the plane.

Source files

Definition at line 56 of file plane.H.


Constructor & Destructor Documentation

plane ( const vector &  normalVector  ) 

Construct from normal vector through the origin.

Definition at line 118 of file plane.C.

plane ( const point &  basePoint,
const vector &  normalVector 
)

Construct from normal vector and point in plane.

Definition at line 126 of file plane.C.

plane ( const point &  point1,
const point &  point2,
const point &  point3 
)

Construct from three points in plane.

Definition at line 155 of file plane.C.

plane ( const scalarList &  C  ) 

Construct from coefficients for the.

plane equation: ax + by + cz + d = 0

Definition at line 147 of file plane.C.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

plane ( const dictionary &  planeDict  ) 

Construct from dictionary.

Definition at line 166 of file plane.C.

plane ( Istream &  is  ) 

Construct from Istream. Assumes the base + normal notation.

Definition at line 218 of file plane.C.


Member Function Documentation

const Foam::vector & normal (  )  const

Return plane normal.

Definition at line 241 of file plane.C.

Referenced by searchablePlane::getVolumeType().

Here is the caller graph for this function:

const Foam::point & refPoint (  )  const

Return or return plane base point.

Definition at line 248 of file plane.C.

Foam::scalarList planeCoeffs (  )  const

Return coefficients for the.

plane equation: ax + by + cz + d = 0

Definition at line 255 of file plane.C.

Foam::point nearestPoint ( const point &  p  )  const

Return nearest point in the plane for the given point.

Definition at line 303 of file plane.C.

Foam::scalar distance ( const point &  p  )  const

Return distance from the given point to the plane.

Definition at line 310 of file plane.C.

Foam::scalar normalIntersect ( const point &  pnt0,
const vector &  dir 
) const

Return cut coefficient for plane and line defined by.

origin and direction

Definition at line 318 of file plane.C.

References Foam::mag().

Referenced by plane::normalIntersect().

Here is the call graph for this function:

Here is the caller graph for this function:

scalar normalIntersect ( const ray &  r  )  const [inline]

Return cut coefficient for plane and ray.

Definition at line 166 of file plane.H.

References ray::dir(), plane::normalIntersect(), and ray::refPoint().

Here is the call graph for this function:

scalar lineIntersect ( const line< Point, PointRef > &  l  )  const [inline]

Return the cutting point between the plane and.

a line passing through the supplied points

Definition at line 176 of file plane.H.

Foam::plane::ray planeIntersect ( const plane &  plane2  )  const

Return the cutting line between this plane and another.

Returned as direction vector and point line goes through.

Definition at line 330 of file plane.C.

References Foam::stabilise().

Here is the call graph for this function:

Foam::point planePlaneIntersect ( const plane &  plane2,
const plane &  plane3 
) const

Return the cutting point between this plane and two other planes.

Definition at line 399 of file plane.C.


Friends And Related Function Documentation

bool operator== ( const plane &  ,
const plane &   
) [friend]

bool operator!= ( const plane &  ,
const plane &   
) [friend]

Ostream& operator<< ( Ostream &  ,
const plane &   
) [friend]

Write plane properties.


The documentation for this class was generated from the following files:
  • src/OpenFOAM/meshes/primitiveShapes/plane/plane.H
  • src/OpenFOAM/meshes/primitiveShapes/plane/plane.C
Copyright © 2000-2009 OpenCFD Ltd