X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Ellipse.cpp;h=9c0926a13e940c36e8ceb6183a9f45d431098dc4;hb=4df4bd61da1ea5d357671c819a8ced6ec9ba77ac;hp=1eae6445f4e532683b4b5abc36e3ec7d7f3c36ac;hpb=0c4ac6e8bf0e1aef3238e9becfebdbff68bedd1d;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Ellipse.cpp b/src/GeomAPI/GeomAPI_Ellipse.cpp index 1eae6445f..9c0926a13 100644 --- a/src/GeomAPI/GeomAPI_Ellipse.cpp +++ b/src/GeomAPI/GeomAPI_Ellipse.cpp @@ -1,4 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D +// Copyright (C) 2017 CEA/DEN, EDF R&D +// +// 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 +// // File: GeomAPI_Ellipse.cpp // Created: 25 April 2017 @@ -18,6 +36,12 @@ GeomAPI_Ellipse::GeomAPI_Ellipse(const std::shared_ptr& theAx2, { } +std::shared_ptr GeomAPI_Ellipse::center() const +{ + const gp_Pnt& aCenter = MY_ELIPS->Location(); + return std::shared_ptr(new GeomAPI_Pnt(aCenter.X(), aCenter.Y(), aCenter.Z())); +} + GeomPointPtr GeomAPI_Ellipse::firstFocus() const { const gp_Pnt& aFirst = MY_ELIPS->Focus1();