- /** \brief Creates revolution for the given shape.
- * \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<GeomAPI_Shape> theBaseShape,
- std::shared_ptr<GeomAPI_Ax1> theAxis,
- double theToAngle,
- double theFromAngle);
-
- /** \brief Creates revolution for the given shape.
- * \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<GeomAPI_Shape> theBaseShape,
- std::shared_ptr<GeomAPI_Ax1> theAxis,
- std::shared_ptr<GeomAPI_Shape> theToShape,
- double theToAngle,
- std::shared_ptr<GeomAPI_Shape> theFromShape,
- double theFromAngle);
-
- /// \return true if algorithm succeed.
- GEOMALGOAPI_EXPORT const bool isDone() const;
-
- /// \return true if resulting shape is valid.
- GEOMALGOAPI_EXPORT const bool isValid() const;
-
- /// \return true if resulting shape has volume.
- GEOMALGOAPI_EXPORT const bool hasVolume() const;
-
- /// \return result of the Revolution algorithm.
- GEOMALGOAPI_EXPORT const std::shared_ptr<GeomAPI_Shape>& shape() const;
-
- /// \returns the list of from faces.
- GEOMALGOAPI_EXPORT const ListOfShape& fromFaces() const;
-
- /// \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<GeomAPI_DataMapOfShapeShape> mapOfShapes() const;
-
- /// \return interface for History processing.
- GEOMALGOAPI_EXPORT std::shared_ptr<GeomAlgoAPI_MakeShape> makeShape() const;
+ /// \brief Creates revolution for the given shape.
+ /// \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(const GeomShapePtr theBaseShape,
+ const std::shared_ptr<GeomAPI_Ax1> theAxis,
+ const double theToAngle,
+ const double theFromAngle);
+
+ /// \brief Creates revolution for the given shape.
+ /// \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(const GeomShapePtr theBaseShape,
+ const std::shared_ptr<GeomAPI_Ax1> theAxis,
+ const GeomShapePtr theToShape,
+ const double theToAngle,
+ const GeomShapePtr theFromShape,
+ const double theFromAngle);