X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_EdgeBuilder.h;h=4650740284a3cc4d6dc3c608abb146fc6306a86f;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=b7b97aa7ee6818e881ed2106c38d0dd3e79adc09;hpb=12ff6c6ac96338a0bf0edadba22a6ca79bce5947;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.h b/src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.h index b7b97aa7e..465074028 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: GeomAlgoAPI_EdgeBuilder.h -// Created: 23 Apr 2014 -// Author: Mikhail PONIKAROV +// Copyright (C) 2014-2023 CEA, EDF +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef GeomAlgoAPI_EdgeBuilder_H_ #define GeomAlgoAPI_EdgeBuilder_H_ @@ -11,7 +24,13 @@ #include #include #include +#include +#include #include +#include + +class GeomAPI_Ax3; +class GeomAPI_BSpline2d; /**\class GeomAlgoAPI_EdgeBuilder * \ingroup DataAlgo @@ -35,6 +54,10 @@ class GEOMALGOAPI_EXPORT GeomAlgoAPI_EdgeBuilder double theDY, double theDZ); + /// Creates linear edge by GeomAPI_Lin. + /// \param theLin line. + static std::shared_ptr line(const std::shared_ptr theLin); + /// Creates edge - axis of the given cylindrical face. The result axis edge is infinite static std::shared_ptr cylinderAxis( std::shared_ptr theCylindricalFace); @@ -44,11 +67,45 @@ class GEOMALGOAPI_EXPORT GeomAlgoAPI_EdgeBuilder std::shared_ptr theNormal, double theRadius); + /// Creates linear edge in a form of a circle by GeomAPI_Circle + static std::shared_ptr lineCircle(std::shared_ptr theCircle); + /// Creates linear edge in a form of a circle arc by a three points static std::shared_ptr lineCircleArc(std::shared_ptr theCenter, std::shared_ptr theStartPoint, std::shared_ptr theEndPoint, std::shared_ptr theNormal); + + /// Creates elliptic edge + static std::shared_ptr ellipse(const std::shared_ptr& theCenter, + const std::shared_ptr& theNormal, + const std::shared_ptr& theMajorAxis, + const double theMajorRadius, + const double theMinorRadius); + + + /// Creates elliptic edge + static std::shared_ptr ellipticArc( + const std::shared_ptr& theCenter, + const std::shared_ptr& theNormal, + const std::shared_ptr& theMajorAxis, + const double theMajorRadius, + const double theMinorRadius, + const std::shared_ptr& theStart, + const std::shared_ptr& theEnd); + + /// Creates planar B-spline edge + static GeomEdgePtr bsplineOnPlane(const std::shared_ptr& thePlane, + const std::list >& thePoles, + const std::list& theWeights, + const std::list& theKnots, + const std::list& theMults, + const int theDegree, + const bool thePeriodic); + + /// Creates planar B-spline edge + static GeomEdgePtr bsplineOnPlane(const std::shared_ptr& thePlane, + const std::shared_ptr& theCurve); }; #endif