X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_EdgeBuilder.h;h=b7b97aa7ee6818e881ed2106c38d0dd3e79adc09;hb=f0cec241aae9ca16d86e166f45cb5c4987d2c792;hp=1db144ed1d2658e6d2caa3daa85cf09986510321;hpb=cd9217d7e87997ec8bc150a6d8c389e742ca0f84;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.h b/src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.h index 1db144ed1..b7b97aa7e 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAlgoAPI_EdgeBuilder.h // Created: 23 Apr 2014 // Author: Mikhail PONIKAROV @@ -9,7 +11,7 @@ #include #include #include -#include +#include /**\class GeomAlgoAPI_EdgeBuilder * \ingroup DataAlgo @@ -19,20 +21,34 @@ class GEOMALGOAPI_EXPORT GeomAlgoAPI_EdgeBuilder { public: - /// Creates linear edge by two points - static boost::shared_ptr line(boost::shared_ptr theStart, - boost::shared_ptr theEnd); + /// Creates linear edge by two points. + /// \param theStart a first point of an edge + /// \param theEnd an end point of an edge + static std::shared_ptr line(std::shared_ptr theStart, + std::shared_ptr theEnd); + + /// Creates linear edge by three dimensions. + /// \param theX the X dimension + /// \param theY the Y dimension + /// \param theZ the Z dimension + static std::shared_ptr line(double theDX, + double theDY, + double theDZ); + + /// Creates edge - axis of the given cylindrical face. The result axis edge is infinite + static std::shared_ptr cylinderAxis( + std::shared_ptr theCylindricalFace); /// Creates linear edge in a form of a circle by a point and a circle radius - static boost::shared_ptr lineCircle(boost::shared_ptr theCenter, - boost::shared_ptr theNormal, + static std::shared_ptr lineCircle(std::shared_ptr theCenter, + std::shared_ptr theNormal, double theRadius); /// Creates linear edge in a form of a circle arc by a three points - static boost::shared_ptr lineCircleArc(boost::shared_ptr theCenter, - boost::shared_ptr theStartPoint, - boost::shared_ptr theEndPoint, - boost::shared_ptr theNormal); + static std::shared_ptr lineCircleArc(std::shared_ptr theCenter, + std::shared_ptr theStartPoint, + std::shared_ptr theEndPoint, + std::shared_ptr theNormal); }; #endif