From: nds Date: Wed, 27 Jul 2016 05:02:24 +0000 (+0300) Subject: Issue #1664: In the Sketcher, add the function Split a segment. Split feature impleme... X-Git-Tag: V_2.5.0~168 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a69d83f22139a1c35e6c2ef45f465dfa40841233;p=modules%2Fshaper.git Issue #1664: In the Sketcher, add the function Split a segment. Split feature implementation to process attributes --- diff --git a/src/SketchPlugin/SketchPlugin_ConstraintSplit.cpp b/src/SketchPlugin/SketchPlugin_ConstraintSplit.cpp index 779ceca46..5c0db4bda 100755 --- a/src/SketchPlugin/SketchPlugin_ConstraintSplit.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintSplit.cpp @@ -1166,7 +1166,7 @@ FeaturePtr SketchPlugin_ConstraintSplit::createFeature(const AttributePoint2DPtr const AttributePoint2DPtr& theEndPointAttr) { FeaturePtr aFeature; - +/* AttributeReferencePtr aBaseObjectAttr = std::dynamic_pointer_cast( 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; } diff --git a/src/SketchPlugin/SketchPlugin_ConstraintSplit.h b/src/SketchPlugin/SketchPlugin_ConstraintSplit.h index 5e7bae5b5..2cbf75fd7 100755 --- a/src/SketchPlugin/SketchPlugin_ConstraintSplit.h +++ b/src/SketchPlugin/SketchPlugin_ConstraintSplit.h @@ -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 FeaturePtr SketchPlugin_ConstraintSplit::createFeature( + std::shared_ptr createFeature( const std::shared_ptr& theStartPointAttr, const std::shared_ptr& theEndPointAttr);