From a69d83f22139a1c35e6c2ef45f465dfa40841233 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 27 Jul 2016 08:02:24 +0300 Subject: [PATCH] Issue #1664: In the Sketcher, add the function Split a segment. Split feature implementation to process attributes --- src/SketchPlugin/SketchPlugin_ConstraintSplit.cpp | 4 ++-- src/SketchPlugin/SketchPlugin_ConstraintSplit.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.2