std::shared_ptr<GeomAPI_Ax1> theAxis,
double theToAngle,
double theFromAngle);
/** \brief Creates revolution for the given shape.
std::shared_ptr<GeomAPI_Ax1> theAxis,
double theToAngle,
double theFromAngle);
/** \brief Creates revolution for the given shape.
* \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.
*/
* \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.
*/
std::shared_ptr<GeomAPI_Ax1> theAxis,
std::shared_ptr<GeomAPI_Shape> theToShape,
double theToAngle,
std::shared_ptr<GeomAPI_Ax1> theAxis,
std::shared_ptr<GeomAPI_Shape> theToShape,
double theToAngle,
/// \return result of the Revolution algorithm.
GEOMALGOAPI_EXPORT const std::shared_ptr<GeomAPI_Shape>& shape() const;
/// \return result of the Revolution algorithm.
GEOMALGOAPI_EXPORT const std::shared_ptr<GeomAPI_Shape>& shape() 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 map of sub-shapes of the result. To be used for History keeping.
GEOMALGOAPI_EXPORT std::shared_ptr<GeomAPI_DataMapOfShapeShape> mapOfShapes() const;
- /// \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.
/** \brief Selects solid from theShape with closest center of mass to thePoint
* \param[in] theShape compound with solids.
TopoDS_Shape findClosest(const TopoDS_Shape& theShape, const gp_Pnt& thePoint);
/// Builds resulting shape.
TopoDS_Shape findClosest(const TopoDS_Shape& theShape, const gp_Pnt& thePoint);
/// Builds resulting shape.
const std::shared_ptr<GeomAPI_Ax1>& theAxis,
const std::shared_ptr<GeomAPI_Shape>& theToShape,
double theToAngle,
const std::shared_ptr<GeomAPI_Ax1>& theAxis,
const std::shared_ptr<GeomAPI_Shape>& theToShape,
double theToAngle,
std::shared_ptr<GeomAPI_DataMapOfShapeShape> myMap;
std::shared_ptr<GeomAlgoAPI_MakeShape> myMkShape;
};
std::shared_ptr<GeomAPI_DataMapOfShapeShape> myMap;
std::shared_ptr<GeomAlgoAPI_MakeShape> myMkShape;
};