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

ModelingData
TKGeomBase
gce


gce_MakeCirc Class Reference

This class implements the following algorithms used
to create Circ from gp.

* Create a Circ coaxial to another and passing
though a point.
* Create a Circ coaxial to another at the distance
Dist.
* Create a Circ passing through 3 points.
* Create a Circ with its center and the normal of its
plane and its radius.
* Create a Circ with its center and its plane and its
radius.
* Create a Circ with its axis and radius.
* Create a Circ with two points giving its axis and
its radius.
* Create a Circ with is Ax2 and its Radius.
.

#include <gce_MakeCirc.hxx>

Inheritance diagram for gce_MakeCirc:

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 gce_MakeCirc (const gp_Ax2 &A2, const Standard_Real Radius)
 A2 locates the circle and gives its orientation in 3D space.
Warnings :
It is not forbidden to create a circle with Radius = 0.0
The status is "NegativeRadius" if Radius < 0.0
.
Standard_EXPORT gce_MakeCirc (const gp_Circ &Circ, const Standard_Real Dist)
 Makes a Circ from gp <thecirc> coaxial to another
Circ <circ> at a distance <dist>.
If Dist is greater than zero the result is encloses
the circle <circ>, else the result is enclosed by the
circle <circ>.
.
Standard_EXPORT gce_MakeCirc (const gp_Circ &Circ, const gp_Pnt &Point)
 Makes a Circ from gp <thecirc> coaxial to another
Circ <circ> and passing through a Pnt2d <point>.
.
Standard_EXPORT gce_MakeCirc (const gp_Pnt &P1, const gp_Pnt &P2, const gp_Pnt &P3)
 Makes a Circ from gp <thecirc> passing through 3
Pnt2d <p1>,<p2>,<p3>.
.
Standard_EXPORT gce_MakeCirc (const gp_Pnt &Center, const gp_Dir &Norm, const Standard_Real Radius)
 Makes a Circ from gp <thecirc> with its center
and the normal of its plane <norm> and
its radius <radius>.
.

Standard_EXPORT gce_MakeCirc (const gp_Pnt &Center, const gp_Pln &Plane, const Standard_Real Radius)
 Makes a Circ from gp <thecirc> with its center
and the normal of its plane <plane> and
its radius <radius>.
.

Standard_EXPORT gce_MakeCirc (const gp_Pnt &Center, const gp_Pnt &Ptaxis, const Standard_Real Radius)
 Makes a Circ from gp <thecirc> with its center
and a point <ptaxis> giving the normal
of its plane <plane> and its radius <radius>.
.

Standard_EXPORT gce_MakeCirc (const gp_Ax1 &Axis, const Standard_Real Radius)
 Makes a Circ from gp <thecirc> with its center
and its radius <radius>.
Warning
The MakeCirc class does not prevent the
construction of a circle with a null radius.
If an error occurs (that is, when IsDone returns
false), the Status function returns:
- gce_Negative Radius if:
- Radius is less than 0.0, or
- Dist is less than 0.0 and the absolute value of
Dist is greater than the radius of Circ;
- gce_IntersectionError if the points P1, P2 and
P3 are collinear, and the three are not coincident;
- gce_ConfusedPoints if two of the three points
P1, P2 and P3 are coincident; or
- gce_NullAxis if Center and Ptaxis are coincident.
.

Standard_EXPORT const gp_Circ & Value () const
 Returns the constructed circle.
Exceptions StdFail_NotDone if no circle is constructed.
.
Standard_EXPORT const gp_Circ & Operator () const
Standard_EXPORT operator gp_Circ () const

Private Attributes

gp_Circ TheCirc

Constructor & Destructor Documentation

Standard_EXPORT gce_MakeCirc::gce_MakeCirc const gp_Ax2 &  A2,
const Standard_Real  Radius
 

Standard_EXPORT gce_MakeCirc::gce_MakeCirc const gp_Circ &  Circ,
const Standard_Real  Dist
 

Standard_EXPORT gce_MakeCirc::gce_MakeCirc const gp_Circ &  Circ,
const gp_Pnt &  Point
 

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

Standard_EXPORT gce_MakeCirc::gce_MakeCirc const gp_Pnt &  Center,
const gp_Dir &  Norm,
const Standard_Real  Radius
 

Standard_EXPORT gce_MakeCirc::gce_MakeCirc const gp_Pnt &  Center,
const gp_Pln &  Plane,
const Standard_Real  Radius
 

Standard_EXPORT gce_MakeCirc::gce_MakeCirc const gp_Pnt &  Center,
const gp_Pnt &  Ptaxis,
const Standard_Real  Radius
 

Standard_EXPORT gce_MakeCirc::gce_MakeCirc const gp_Ax1 &  Axis,
const Standard_Real  Radius
 


Member Function Documentation

Standard_EXPORT const gp_Circ& gce_MakeCirc::Operator  )  const
 

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

Reimplemented from gce_Root.

Standard_EXPORT gce_MakeCirc::operator gp_Circ  )  const
 

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

Reimplemented from gce_Root.

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

Reimplemented from gce_Root.

Standard_EXPORT const gp_Circ& gce_MakeCirc::Value  )  const
 


Field Documentation

gp_Circ gce_MakeCirc::TheCirc [private]
 


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