]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1664: In the Sketcher, add the function Split a segment. Split feature impleme...
authornds <nds@opencascade.com>
Wed, 27 Jul 2016 05:02:24 +0000 (08:02 +0300)
committernds <nds@opencascade.com>
Wed, 27 Jul 2016 05:02:24 +0000 (08:02 +0300)
src/SketchPlugin/SketchPlugin_ConstraintSplit.cpp
src/SketchPlugin/SketchPlugin_ConstraintSplit.h

index 779ceca4640bd367371dd77c2a4c1343a0108f32..5c0db4bda179cbc3f71cb2b0ac4f64584b380a9d 100755 (executable)
@@ -1166,7 +1166,7 @@ FeaturePtr SketchPlugin_ConstraintSplit::createFeature(const AttributePoint2DPtr
                                                        const AttributePoint2DPtr& theEndPointAttr)
 {
   FeaturePtr aFeature;
-
+/*
   AttributeReferencePtr aBaseObjectAttr = std::dynamic_pointer_cast<ModelAPI_AttributeReference>(
                                            data()->attribute(SketchPlugin_Constraint::ENTITY_A()));
   FeaturePtr aBaseFeature = ModelAPI_Feature::feature(aBaseObjectAttr->value());
@@ -1195,6 +1195,6 @@ FeaturePtr SketchPlugin_ConstraintSplit::createFeature(const AttributePoint2DPtr
                                               aFeature->attribute(SketchPlugin_Arc::END_ID()));
     anEndAttribute->setValue(theEndPointAttr->pnt());
   }
-
+*/
   return aFeature;
 }
index 5e7bae5b553a20554c564642c12eb183ad475468..2cbf75fd73946650804913b6eb7a5e83a285d869 100755 (executable)
@@ -86,7 +86,7 @@ private:
   /// Creates a new feature in the base shape type with bounding points given in parameters
   /// \param theStartPointAttr an attribute of the start point
   /// \param theEndPointAttr an attribute of the end point
-  std::shared_ptr<ModelAPI_Feature> FeaturePtr SketchPlugin_ConstraintSplit::createFeature(
+  std::shared_ptr<ModelAPI_Feature> createFeature(
                                     const std::shared_ptr<GeomDataAPI_Point2D>& theStartPointAttr,
                                     const std::shared_ptr<GeomDataAPI_Point2D>& theEndPointAttr);