Salome HOME
Make plane as close as possible to selected shape by its size
[modules/shaper.git] / src / GeomAPI / GeomAPI_Shape.h
index ced881e65c394f0daf8b5cb15c75309d233a0608..6302f8606de051e68e675b655ea6e3193f4d81ab 100644 (file)
@@ -35,6 +35,11 @@ class GEOMAPI_EXPORT GeomAPI_Shape : public GeomAPI_Interface
   /// Returns whether the shape is a face
   virtual bool isFace() const;
 
+  /// Computes boundary dimensions of the shape
+  /// Returns False if it is not possible
+  bool computeSize(double& theXmin, double& theYmin, double& theZmin,
+                   double& theXmax, double& theYmax, double& theZmax) const;
+
 };
 
 //! Pointer on list of shapes