SHAPER  9.12.0
GeomAlgoAPI_Circ2dBuilder Class Reference

Creates circle in 2D space satisfying combination of the following constraints: More...

Public Member Functions

GEOMALGOAPI_EXPORT GeomAlgoAPI_Circ2dBuilder (const std::shared_ptr< GeomAPI_Ax3 > &thePlane)
 Create a builder object. More...
 
GEOMALGOAPI_EXPORT void setRadius (const double theRadius)
 Set fixed radius of the circle. More...
 
GEOMALGOAPI_EXPORT void setCenter (const std::shared_ptr< GeomAPI_Pnt2d > &theCenter)
 Set fixed center of the circle. More...
 
GEOMALGOAPI_EXPORT void addTangentCurve (const std::shared_ptr< GeomAPI_Shape > &theEdge)
 Constrain circle to be tangent to the given edge. More...
 
GEOMALGOAPI_EXPORT void setTransversalLine (const std::shared_ptr< GeomAPI_Shape > &theEdge)
 Constrain circle to be orthogonal to the given edge. More...
 
GEOMALGOAPI_EXPORT void addPassingPoint (const std::shared_ptr< GeomAPI_Pnt2d > &thePoint)
 Constrain circle to pass through the given point. More...
 
GEOMALGOAPI_EXPORT void setClosestPoint (const std::shared_ptr< GeomAPI_Pnt2d > &thePoint)
 Optional constraint to find circle closest to the given point. More...
 
GEOMALGOAPI_EXPORT std::shared_ptr< GeomAPI_Circ2dcircle ()
 Build circle. More...
 

Static Public Member Functions

static GEOMALGOAPI_EXPORT std::shared_ptr< GeomAPI_Circ2dcircle (const std::shared_ptr< GeomAPI_Pnt2d > &theFirstPoint, const std::shared_ptr< GeomAPI_Pnt2d > &theSecondPoint, const std::shared_ptr< GeomAPI_Pnt2d > &theThirdPoint)
 Create a circle passing through three points. More...
 

Detailed Description

Creates circle in 2D space satisfying combination of the following constraints:

  • center of a circle
  • passing through the point
  • tangent to a curve
  • fixed radius

Constructor & Destructor Documentation

◆ GeomAlgoAPI_Circ2dBuilder()

GeomAlgoAPI_Circ2dBuilder::GeomAlgoAPI_Circ2dBuilder ( const std::shared_ptr< GeomAPI_Ax3 > &  thePlane)

Create a builder object.

Constraints should be applied separately.

Parameters
thePlane[in] plane to project tangent curves

Member Function Documentation

◆ setRadius()

void GeomAlgoAPI_Circ2dBuilder::setRadius ( const double  theRadius)

Set fixed radius of the circle.

◆ setCenter()

void GeomAlgoAPI_Circ2dBuilder::setCenter ( const std::shared_ptr< GeomAPI_Pnt2d > &  theCenter)

Set fixed center of the circle.

◆ addTangentCurve()

void GeomAlgoAPI_Circ2dBuilder::addTangentCurve ( const std::shared_ptr< GeomAPI_Shape > &  theEdge)

Constrain circle to be tangent to the given edge.

◆ setTransversalLine()

void GeomAlgoAPI_Circ2dBuilder::setTransversalLine ( const std::shared_ptr< GeomAPI_Shape > &  theEdge)

Constrain circle to be orthogonal to the given edge.

◆ addPassingPoint()

void GeomAlgoAPI_Circ2dBuilder::addPassingPoint ( const std::shared_ptr< GeomAPI_Pnt2d > &  thePoint)

Constrain circle to pass through the given point.

◆ setClosestPoint()

void GeomAlgoAPI_Circ2dBuilder::setClosestPoint ( const std::shared_ptr< GeomAPI_Pnt2d > &  thePoint)

Optional constraint to find circle closest to the given point.

◆ circle() [1/2]

std::shared_ptr< GeomAPI_Circ2d > GeomAlgoAPI_Circ2dBuilder::circle ( )

Build circle.

◆ circle() [2/2]

std::shared_ptr< GeomAPI_Circ2d > GeomAlgoAPI_Circ2dBuilder::circle ( const std::shared_ptr< GeomAPI_Pnt2d > &  theFirstPoint,
const std::shared_ptr< GeomAPI_Pnt2d > &  theSecondPoint,
const std::shared_ptr< GeomAPI_Pnt2d > &  theThirdPoint 
)
static

Create a circle passing through three points.