20 #ifndef GeomAlgoAPI_Circ2dBuilder_H_
21 #define GeomAlgoAPI_Circ2dBuilder_H_
23 #include <GeomAlgoAPI.h>
55 void setCenter(
const std::shared_ptr<GeomAPI_Pnt2d>& theCenter);
75 std::shared_ptr<GeomAPI_Circ2d>
circle();
79 static std::shared_ptr<GeomAPI_Circ2d>
80 circle(
const std::shared_ptr<GeomAPI_Pnt2d>& theFirstPoint,
81 const std::shared_ptr<GeomAPI_Pnt2d>& theSecondPoint,
82 const std::shared_ptr<GeomAPI_Pnt2d>& theThirdPoint);
85 std::shared_ptr<GeomAPI_Ax3> myPlane;
86 std::shared_ptr<GeomAPI_Pnt2d> myCenter;
87 std::vector< std::shared_ptr<GeomAPI_Pnt2d> > myPassingPoints;
88 std::vector< std::shared_ptr<GeomAPI_Shape> > myTangentShapes;
89 std::shared_ptr<GeomAPI_Shape> myTransversalLine;
90 std::shared_ptr<GeomAPI_Pnt2d> myClosestPoint;
The class represents a coordinate plane which is 2d plane with X and Y directions and origin.
Definition: GeomAPI_Ax3.h:33
Circle in 2D.
Definition: GeomAPI_Circ2d.h:37
2D point defined by two coordinates
Definition: GeomAPI_Pnt2d.h:36
Interface to the topological shape object.
Definition: GeomAPI_Shape.h:43
Creates circle in 2D space satisfying combination of the following constraints:
Definition: GeomAlgoAPI_Circ2dBuilder.h:41
GEOMALGOAPI_EXPORT void setRadius(const double theRadius)
Set fixed radius of the circle.
Definition: GeomAlgoAPI_Circ2dBuilder.cpp:520
GEOMALGOAPI_EXPORT GeomAlgoAPI_Circ2dBuilder(const std::shared_ptr< GeomAPI_Ax3 > &thePlane)
Create a builder object.
Definition: GeomAlgoAPI_Circ2dBuilder.cpp:514
GEOMALGOAPI_EXPORT void setTransversalLine(const std::shared_ptr< GeomAPI_Shape > &theEdge)
Constrain circle to be orthogonal to the given edge.
Definition: GeomAlgoAPI_Circ2dBuilder.cpp:536
GEOMALGOAPI_EXPORT void setCenter(const std::shared_ptr< GeomAPI_Pnt2d > &theCenter)
Set fixed center of the circle.
Definition: GeomAlgoAPI_Circ2dBuilder.cpp:525
GEOMALGOAPI_EXPORT void setClosestPoint(const std::shared_ptr< GeomAPI_Pnt2d > &thePoint)
Optional constraint to find circle closest to the given point.
Definition: GeomAlgoAPI_Circ2dBuilder.cpp:547
GEOMALGOAPI_EXPORT void addPassingPoint(const std::shared_ptr< GeomAPI_Pnt2d > &thePoint)
Constrain circle to pass through the given point.
Definition: GeomAlgoAPI_Circ2dBuilder.cpp:542
GEOMALGOAPI_EXPORT std::shared_ptr< GeomAPI_Circ2d > circle()
Build circle.
Definition: GeomAlgoAPI_Circ2dBuilder.cpp:566
GEOMALGOAPI_EXPORT void addTangentCurve(const std::shared_ptr< GeomAPI_Shape > &theEdge)
Constrain circle to be tangent to the given edge.
Definition: GeomAlgoAPI_Circ2dBuilder.cpp:530