1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomAlgoAPI_EdgeBuilder.h
4 // Created: 23 Apr 2014
5 // Author: Mikhail PONIKAROV
7 #ifndef GeomAlgoAPI_EdgeBuilder_H_
8 #define GeomAlgoAPI_EdgeBuilder_H_
10 #include <GeomAlgoAPI.h>
11 #include <GeomAPI_Edge.h>
12 #include <GeomAPI_Pnt.h>
13 #include <GeomAPI_Dir.h>
16 /**\class GeomAlgoAPI_EdgeBuilder
18 * \brief Allows to create face-shapes by different parameters
21 class GEOMALGOAPI_EXPORT GeomAlgoAPI_EdgeBuilder
24 /// Creates linear edge by two points
25 static std::shared_ptr<GeomAPI_Edge> line(std::shared_ptr<GeomAPI_Pnt> theStart,
26 std::shared_ptr<GeomAPI_Pnt> theEnd);
27 /// Creates edge - axis of the given cylindrical face
28 static std::shared_ptr<GeomAPI_Edge> cylinderAxis(
29 std::shared_ptr<GeomAPI_Shape> theCylindricalFace);
31 /// Creates linear edge in a form of a circle by a point and a circle radius
32 static std::shared_ptr<GeomAPI_Edge> lineCircle(std::shared_ptr<GeomAPI_Pnt> theCenter,
33 std::shared_ptr<GeomAPI_Dir> theNormal,
36 /// Creates linear edge in a form of a circle arc by a three points
37 static std::shared_ptr<GeomAPI_Edge> lineCircleArc(std::shared_ptr<GeomAPI_Pnt> theCenter,
38 std::shared_ptr<GeomAPI_Pnt> theStartPoint,
39 std::shared_ptr<GeomAPI_Pnt> theEndPoint,
40 std::shared_ptr<GeomAPI_Dir> theNormal);