OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

plane Class Reference

Inheritance diagram for plane:

Inheritance graph
[legend]
Collaboration diagram for plane:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 61 of file plane.H.


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.

Classes

class  ray

Constructor & Destructor Documentation

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 equation: ax + by + cz + d = 0

plane ( const dictionary &  planeDict  ) 

Construct from dictionary.

plane ( Istream &  is  ) 

Construct from Istream. Assumes the base + normal notation.


Member Function Documentation

const vector& normal (  )  const

Return plane normal.

const point& refPoint (  )  const

Return or return plane base point.

scalarList planeCoeffs (  )  const

Return coefficients for the.

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

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.

origin and direction

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

Return cut coefficient for plane and ray.

Definition at line 170 of file plane.H.

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 180 of file plane.H.

ray planeIntersect ( const plane &   )  const

Return the cutting line between this plane and another.

Returned as direction vector and point line goes through.

point planePlaneIntersect ( const plane &  ,
const plane &   
) const

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


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 file:
  • src/OpenFOAM/meshes/primitiveShapes/plane/plane.H
Copyright © 2000-2007 OpenCFD Ltd