OCC Main Page | ModelingData | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingData
TKGeomBase
GC


GC_MakePlane Class Reference

This class implements the following algorithms used
to create a Plane from gp.
* Create a Plane parallel to another and passing
through a point.
* Create a Plane passing through 3 points.
* Create a Plane by its normal
A MakePlane object provides a framework for:
- defining the construction of the plane,
- implementing the construction algorithm, and
- consulting the results. In particular, the Value
function returns the constructed plane.
.

#include <GC_MakePlane.hxx>

Inheritance diagram for GC_MakePlane:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT GC_MakePlane (const gp_Ax2 &A2)
 Creates a plane located in 3D space with an axis placement
two axis. The "ZDirection" of "A2" is the direction normal
to the plane. The "Location" point of "A2" is the origin of
the plane. The "XDirection" and "YDirection" of "A2" define
the directions of the U isoparametric and V isoparametric
curves.
.
Standard_EXPORT GC_MakePlane (const gp_Pln &Pl)
 Creates a plane from a non persistent plane from package gp.
.
Standard_EXPORT GC_MakePlane (const gp_Pnt &P, const gp_Dir &V)
 P is the "Location" point or origin of the plane.
V is the direction normal to the plane.
.
Standard_EXPORT GC_MakePlane (const Standard_Real A, const Standard_Real B, const Standard_Real C, const Standard_Real D)
 Creates a plane from its cartesian equation :
Ax + By + Cz + D = 0.0
Status is "BadEquation" if Sqrt (A*A + B*B + C*C)
<= Resolution from gp
.
Standard_EXPORT GC_MakePlane (const gp_Pln &Pln, const gp_Pnt &Point)
 Make a Plane from Geom <theplane> parallel to another
Pln <pln> and passing through a Pnt <point>.
.
Standard_EXPORT GC_MakePlane (const gp_Pln &Pln, const Standard_Real Dist)
 Make a Plane from Geom <theplane> parallel to another
Pln <pln> at the distance <dist> which can be greater
or lower than zero.
In the first case the result is at the distance
<dist> to the plane <pln> in the direction of the
normal to <pln>.
Otherwize it is in the oposite direction.
.
Standard_EXPORT GC_MakePlane (const gp_Pnt &P1, const gp_Pnt &P2, const gp_Pnt &P3)
 Make a Plane from Geom <theplane> passing through 3
Pnt <p1>,<p2>,<p3>.
It returns false if <p1> <p2> <p3> are confused.
.
Standard_EXPORT GC_MakePlane (const gp_Ax1 &Axis)
 Make a Plane passing through the location of <axis>and
normal to the Direction of <axis>.
.
Standard_EXPORT const Handle_Geom_Plane & Value () const
 Returns the constructed plane.
Exceptions StdFail_NotDone if no plane is constructed.
.
Standard_EXPORT const Handle_Geom_Plane & Operator () const
Standard_EXPORT operator Handle_Geom_Plane () const

Private Attributes

Handle_Geom_Plane ThePlane

Constructor & Destructor Documentation

Standard_EXPORT GC_MakePlane::GC_MakePlane const gp_Ax2 &  A2  ) 
 

Standard_EXPORT GC_MakePlane::GC_MakePlane const gp_Pln &  Pl  ) 
 

Standard_EXPORT GC_MakePlane::GC_MakePlane const gp_Pnt &  P,
const gp_Dir &  V
 

Standard_EXPORT GC_MakePlane::GC_MakePlane const Standard_Real  A,
const Standard_Real  B,
const Standard_Real  C,
const Standard_Real  D
 

Standard_EXPORT GC_MakePlane::GC_MakePlane const gp_Pln &  Pln,
const gp_Pnt &  Point
 

Standard_EXPORT GC_MakePlane::GC_MakePlane const gp_Pln &  Pln,
const Standard_Real  Dist
 

Standard_EXPORT GC_MakePlane::GC_MakePlane const gp_Pnt &  P1,
const gp_Pnt &  P2,
const gp_Pnt &  P3
 

Standard_EXPORT GC_MakePlane::GC_MakePlane const gp_Ax1 &  Axis  ) 
 


Member Function Documentation

Standard_EXPORT const Handle_Geom_Plane& GC_MakePlane::Operator  )  const
 

void GC_MakePlane::operator delete void *  anAddress  )  [inline]
 

Reimplemented from GC_Root.

Standard_EXPORT GC_MakePlane::operator Handle_Geom_Plane  )  const
 

void* GC_MakePlane::operator new size_t  size  )  [inline]
 

Reimplemented from GC_Root.

void* GC_MakePlane::operator new size_t  ,
void *  anAddress
[inline]
 

Reimplemented from GC_Root.

Standard_EXPORT const Handle_Geom_Plane& GC_MakePlane::Value  )  const
 


Field Documentation

Handle_Geom_Plane GC_MakePlane::ThePlane [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:22:40 2008 for OpenCASCADE by  doxygen 1.4.1