X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_SketchBuilder.h;h=9fcaec2c3c839a7767190a2bde7a42abbc0fc1fe;hb=f2f34e30b41047d12277ad87e1adf6c0e410e4ff;hp=eb1587a54df4bf335ae415c3a7311800be741ce0;hpb=fd30229f7f40d6cc60670a4d9367324431964961;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.h b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.h index eb1587a54..9fcaec2c3 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.h @@ -1,16 +1,33 @@ -// File: GeomAlgoAPI_SketchBuilder.h -// Created: 02 Jun 2014 -// Author: Artem ZHIDKOV +// Copyright (C) 2014-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 +// -#ifndef GeomAlgoAPI_SketchBuilder_HeaderFile -#define GeomAlgoAPI_SketchBuilder_HeaderFile +#ifndef GeomAlgoAPI_SketchBuilder_H_ +#define GeomAlgoAPI_SketchBuilder_H_ #include -#include +#include #include #include +#include #include /** \class GeomAlgoAPI_SketchBuilder @@ -19,31 +36,36 @@ */ class GEOMALGOAPI_EXPORT GeomAlgoAPI_SketchBuilder { -public: - /** \brief Creates list of faces and unclosed wires on basis of the features of the sketch + public: + /** \brief Creates list of faces based on the features of the sketch + * \param[in] theOrigin origin point of the sketch * \param[in] theDirX x-direction of the sketch - * \param[in] theDirY y-direction of the sketch * \param[in] theNorm normal of the sketch * \param[in] theFeatures initial features of the sketch * \param[out] theResultFaces faces based on closed wires - * \param[out] theResultWires unclosed wires of the sketch * - * The algorithm searches all loops of edges surrounding lesser squares. - * It finds the vertex with minimal coordinates along X axis (theDirX) and then - * goes through the edges passing the surrounding area on the left. + * The algorithm searches all loops of edges surrounding lesser areas. */ - static void createFaces(const boost::shared_ptr& theDirX, - const boost::shared_ptr& theDirY, - const boost::shared_ptr& theNorm, - const std::list< boost::shared_ptr >& theFeatures, - std::list< boost::shared_ptr >& theResultFaces, - std::list< boost::shared_ptr >& theResultWires); + static void createFaces(const std::shared_ptr& theOrigin, + const std::shared_ptr& theDirX, + const std::shared_ptr& theNorm, + const std::list >& theFeatures, + std::list >& theResultFaces); - /** \brief Searches intersections between the faces in the list - * and make holes in the faces to avoid intersections - * \param[in,out] theFaces list of faces to proccess + /** \brief Creates list of faces and unclosed wires on basis of the features of the sketch + * \param[in] theOrigin origin point of the sketch + * \param[in] theDirX x-direction of the sketch + * \param[in] theNorm normal of the sketch + * \param[in] theWire a wire which contains all edges + * \param[out] theResultFaces faces based on closed wires + * + * The algorithm searches all loops of edges surrounding lesser areas. */ - static void fixIntersections(std::list< boost::shared_ptr >& theFaces); + static void createFaces(const std::shared_ptr& theOrigin, + const std::shared_ptr& theDirX, + const std::shared_ptr& theNorm, + const std::shared_ptr& theWire, + std::list >& theResultFaces); }; #endif