+
+ /** \brief Calculates bounding box for theShapes
+ * \return list of eight points.
+ * \param[in] theShapes list of shapes.
+ * \param[in] theEnlarge enlarges bounding box size.
+ */
+ static std::list<std::shared_ptr<GeomAPI_Pnt> > getBoundingBox(const ListOfShape& theShapes, const double theEnlarge = 0.0);
+
+ /**
+ * Returns infinite plane received from theFace plane.
+ */
+ static std::shared_ptr<GeomAPI_Shape> faceToInfinitePlane(const std::shared_ptr<GeomAPI_Shape> theFace);
+
+ /** \brief Enlarges or reduces plane to fit bounding box.
+ * \return plane that fits to bounding box.
+ * \param[in] thePlane base plane.
+ * \param[in] thePoints bounding box points (shoud be eight).
+ */
+ static std::shared_ptr<GeomAPI_Shape> fitPlaneToBox(const std::shared_ptr<GeomAPI_Shape> thePlane,
+ const std::list<std::shared_ptr<GeomAPI_Pnt> >& thePoints);
+