X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Revolution.h;h=0bb2ddfa589d688260bb93816f7b448a59e6e1f2;hb=cacdf9c1e4b42af09db1aa302897a3188b77e0b0;hp=8e6a0033c32d0d8a7c7c701ee108dd47f961a068;hpb=7e53ef4d34d299d8f78e72795b0178238ded5874;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Revolution.h b/src/GeomAlgoAPI/GeomAlgoAPI_Revolution.h index 8e6a0033c..0bb2ddfa5 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Revolution.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Revolution.h @@ -33,23 +33,25 @@ class GeomAlgoAPI_Revolution : public GeomAPI_Interface { public: /** \brief Creates revolution for the given shape. - * \param[in] theBasis face for revolution. + * \param[in] theBaseShape face for revolution. + * \param[in] theAxis axis for revolution. * \param[in] theToAngle to angle. * \param[in] theFromAngle from angle. */ - GEOMALGOAPI_EXPORT GeomAlgoAPI_Revolution(std::shared_ptr theBasis, + GEOMALGOAPI_EXPORT GeomAlgoAPI_Revolution(std::shared_ptr theBaseShape, std::shared_ptr theAxis, double theToAngle, double theFromAngle); /** \brief Creates revolution for the given shape. - * \param[in] theBasis face for revolution. + * \param[in] theBaseShape face for revolution. + * \param[in] theAxis axis for revolution. * \param[in] theToShape to bounding shape. Can be empty. In this case offset will be applied to the basis. * \param[in] theToAngle to angle. * \param[in] theFromShape from bounding shape. Can be empty. In this case offset will be applied to the basis. * \param[in] theFromAngle from angle. */ - GEOMALGOAPI_EXPORT GeomAlgoAPI_Revolution(std::shared_ptr theBasis, + GEOMALGOAPI_EXPORT GeomAlgoAPI_Revolution(std::shared_ptr theBaseShape, std::shared_ptr theAxis, std::shared_ptr theToShape, double theToAngle, @@ -68,11 +70,11 @@ public: /// \return result of the Revolution algorithm. GEOMALGOAPI_EXPORT const std::shared_ptr& shape() const; - /// \return the first shape. - GEOMALGOAPI_EXPORT const std::shared_ptr& firstShape(); + /// \returns the list of from faces. + GEOMALGOAPI_EXPORT const ListOfShape& fromFaces() const; - /// \return the last shape. - GEOMALGOAPI_EXPORT const std::shared_ptr& lastShape(); + /// \return the list of to faces. + GEOMALGOAPI_EXPORT const ListOfShape& toFaces() const; /// \return map of sub-shapes of the result. To be used for History keeping. GEOMALGOAPI_EXPORT std::shared_ptr mapOfShapes() const; @@ -89,8 +91,8 @@ private: */ TopoDS_Face makeFaceFromPlane(gp_Pln& thePlane, const gp_Pnt& thePoint); - /// \return solid created from face. - TopoDS_Solid makeSolidFromFace(const TopoDS_Face& theFace); + /// \return solid created from face or shell. + TopoDS_Solid makeSolidFromShape(const TopoDS_Shape& theShape); /** \brief Selects solid from theShape with closest center of mass to thePoint * \param[in] theShape compound with solids. @@ -100,7 +102,7 @@ private: TopoDS_Shape findClosest(const TopoDS_Shape& theShape, const gp_Pnt& thePoint); /// Builds resulting shape. - void build(const std::shared_ptr& theBasis, + void build(const std::shared_ptr& theBaseShape, const std::shared_ptr& theAxis, const std::shared_ptr& theToShape, double theToAngle, @@ -111,8 +113,8 @@ private: /// Fields. bool myDone; std::shared_ptr myShape; - std::shared_ptr myFirst; - std::shared_ptr myLast; + ListOfShape myFromFaces; + ListOfShape myToFaces; std::shared_ptr myMap; std::shared_ptr myMkShape; };