X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_SketchBuilder.h;h=f442df89d27bece92f75b516b1e61d5b2a62cc34;hb=580f1752efd9d3e8c2890c4016b04dafd639bab7;hp=eb1587a54df4bf335ae415c3a7311800be741ce0;hpb=c2ffb268ca15d135b371efbde80ff33d59a08f24;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.h b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.h index eb1587a54..f442df89d 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.h @@ -1,16 +1,19 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAlgoAPI_SketchBuilder.h // Created: 02 Jun 2014 // Author: Artem ZHIDKOV -#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,10 +22,10 @@ */ class GEOMALGOAPI_EXPORT GeomAlgoAPI_SketchBuilder { -public: + public: /** \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] 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 @@ -32,18 +35,35 @@ public: * It finds the vertex with minimal coordinates along X axis (theDirX) and then * goes through the edges passing the surrounding area on the left. */ - 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, + std::list >& theResultWires); + + /** \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 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. + */ + 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); /** \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 */ - static void fixIntersections(std::list< boost::shared_ptr >& theFaces); + static void fixIntersections(std::list >& theFaces); }; #endif