Salome HOME
Fix for exception on deletion of a Part from PartSet when it is active
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintFillet.h
index dd3edf3cc6008bb83bfb2cf90f942130d5eeb930..b1199bcb89c5f3e3b12aad061884138127cdcc98 100644 (file)
@@ -26,7 +26,7 @@ class SketchPlugin_ConstraintFillet : public SketchPlugin_ConstraintBase
 {
  public:
    struct FilletFeatures {
-    std::list<FeaturePtr> baseEdges; ///< list of objects the fillet is based
+    std::list<std::pair<FeaturePtr, bool>> baseEdgesState; ///< list of objects the fillet is based and its states
     std::list<FeaturePtr> resultEdges; ///< list of result edges
     std::list<FeaturePtr> resultConstraints; ///< list of constraints provided by the fillet
    };
@@ -69,6 +69,10 @@ class SketchPlugin_ConstraintFillet : public SketchPlugin_ConstraintBase
     return myPointFeaturesMap;
   };
 
+private:
+  /// \ Removes all produced features and restore base edges.
+  void clearResults();
+
 private:
   std::set<AttributePtr> myNewPoints; ///< set of new points
   std::map<AttributePtr, FilletFeatures> myPointFeaturesMap; ///< map of point and features for fillet