Open CASCADE Technology 7.8.2.dev
GC_MakeCircle Class Reference

This class implements the following algorithms used to create Cirlec from Geom. More...

#include <GC_MakeCircle.hxx>

Inheritance diagram for GC_MakeCircle:

Public Member Functions

 GC_MakeCircle (const gp_Circ &C)
 creates a circle from a non persistent circle C by its conversion.
 
 GC_MakeCircle (const gp_Ax2 &A2, const Standard_Real Radius)
 A2 is the local coordinates system of the circle. It is not forbidden to create a circle with Radius = 0.0 Status is "NegativeRadius" if Radius < 0.
 
 GC_MakeCircle (const gp_Circ &Circ, const Standard_Real Dist)
 Make a Circle from Geom <TheCirc> parallel to another Circ <Circ> with a distance <Dist>. If Dist is greater than zero the result is enclosing the circle <Circ>, else the result is enclosed by the circle <Circ>.
 
 GC_MakeCircle (const gp_Circ &Circ, const gp_Pnt &Point)
 Make a Circle from Geom <TheCirc> parallel to another Circ <Circ> and passing through a Pnt <Point>.
 
 GC_MakeCircle (const gp_Pnt &P1, const gp_Pnt &P2, const gp_Pnt &P3)
 Make a Circ from gp <TheCirc> passing through 3 Pnt2d <P1>,<P2>,<P3>.
 
 GC_MakeCircle (const gp_Pnt &Center, const gp_Dir &Norm, const Standard_Real Radius)
 Make a Circle from Geom <TheCirc> with its center

and the normal of its plane <Norm> and its radius <Radius>.

 
 GC_MakeCircle (const gp_Pnt &Center, const gp_Pnt &PtAxis, const Standard_Real Radius)
 Make a Circle from Geom <TheCirc> with its center

and the normal of its plane defined by the two points
and <PtAxis> and its radius <Radius>.

 
 GC_MakeCircle (const gp_Ax1 &Axis, const Standard_Real Radius)
 Make a Circle from Geom <TheCirc> with its center

and its radius <Radius>.

 
const Handle< Geom_Circle > & Value () const
 Returns the constructed circle. Exceptions StdFail_NotDone if no circle is constructed.
 
 operator const Handle< Geom_Circle > & () const
 
- Public Member Functions inherited from GC_Root
Standard_Boolean IsDone () const
 Returns true if the construction is successful.
 
gce_ErrorType Status () const
 Returns the status of the construction:
 

Additional Inherited Members

- Protected Attributes inherited from GC_Root
gce_ErrorType TheError
 

Detailed Description

This class implements the following algorithms used to create Cirlec from Geom.

  • Create a Circle parallel to another and passing though a point.
  • Create a Circle parallel to another at the distance Dist.
  • Create a Circle passing through 3 points.
  • Create a Circle with its center and the normal of its plane and its radius.
  • Create a Circle with its axis and radius. The circle's parameter is the angle (Radian). The parametrization range is [0,2*PI]. The circle is a closed and periodic curve. The center of the circle is the Location point of its axis placement. The XDirection of the axis placement defines the origin of the parametrization.

Constructor & Destructor Documentation

◆ GC_MakeCircle() [1/8]

GC_MakeCircle::GC_MakeCircle ( const gp_Circ & C)

creates a circle from a non persistent circle C by its conversion.

◆ GC_MakeCircle() [2/8]

GC_MakeCircle::GC_MakeCircle ( const gp_Ax2 & A2,
const Standard_Real Radius )

A2 is the local coordinates system of the circle. It is not forbidden to create a circle with Radius = 0.0 Status is "NegativeRadius" if Radius < 0.

◆ GC_MakeCircle() [3/8]

GC_MakeCircle::GC_MakeCircle ( const gp_Circ & Circ,
const Standard_Real Dist )

Make a Circle from Geom <TheCirc> parallel to another Circ <Circ> with a distance <Dist>. If Dist is greater than zero the result is enclosing the circle <Circ>, else the result is enclosed by the circle <Circ>.

◆ GC_MakeCircle() [4/8]

GC_MakeCircle::GC_MakeCircle ( const gp_Circ & Circ,
const gp_Pnt & Point )

Make a Circle from Geom <TheCirc> parallel to another Circ <Circ> and passing through a Pnt <Point>.

◆ GC_MakeCircle() [5/8]

GC_MakeCircle::GC_MakeCircle ( const gp_Pnt & P1,
const gp_Pnt & P2,
const gp_Pnt & P3 )

Make a Circ from gp <TheCirc> passing through 3 Pnt2d <P1>,<P2>,<P3>.

◆ GC_MakeCircle() [6/8]

GC_MakeCircle::GC_MakeCircle ( const gp_Pnt & Center,
const gp_Dir & Norm,
const Standard_Real Radius )

Make a Circle from Geom <TheCirc> with its center

and the normal of its plane <Norm> and its radius <Radius>.

◆ GC_MakeCircle() [7/8]

GC_MakeCircle::GC_MakeCircle ( const gp_Pnt & Center,
const gp_Pnt & PtAxis,
const Standard_Real Radius )

Make a Circle from Geom <TheCirc> with its center

and the normal of its plane defined by the two points
and <PtAxis> and its radius <Radius>.

◆ GC_MakeCircle() [8/8]

GC_MakeCircle::GC_MakeCircle ( const gp_Ax1 & Axis,
const Standard_Real Radius )

Make a Circle from Geom <TheCirc> with its center

and its radius <Radius>.

Member Function Documentation

◆ operator const Handle< Geom_Circle > &()

GC_MakeCircle::operator const Handle< Geom_Circle > & ( ) const
inline

◆ Value()

const Handle< Geom_Circle > & GC_MakeCircle::Value ( ) const

Returns the constructed circle. Exceptions StdFail_NotDone if no circle is constructed.


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