Salome HOME
Extrusion fix
[modules/shaper.git] / src / ModelAPI / ModelAPI_Document.h
index 8c1297359b113bdbe76c4156f6aa546717d14d64..6fe1c9121fbdbeda6def3657e870fb062f3cd1e8 100644 (file)
@@ -25,6 +25,7 @@ class ModelAPI_ResultPart;
 class ModelAPI_ResultGroup;
 class ModelAPI_ResultParameter;
 class ModelAPI_Data;
+class GeomAPI_Shape;
 
 /**\class ModelAPI_Document
  * \ingroup DataModel
@@ -157,6 +158,11 @@ public:
   /// Returns true if document is opened and valid
   virtual bool isOpened() = 0;
 
+  /// Returns the feature that produced the given face of the given result.
+  virtual std::shared_ptr<ModelAPI_Feature> producedByFeature(
+    std::shared_ptr<ModelAPI_Result> theResult,
+    const std::shared_ptr<GeomAPI_Shape>& theShape) = 0;
+
 
 protected:
   //! Only for SWIG wrapping it is here