]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
2D point selection in multi-rotation/multi-translation.
authornds <nds@opencascade.com>
Tue, 22 Dec 2015 10:40:29 +0000 (13:40 +0300)
committernds <nds@opencascade.com>
Tue, 22 Dec 2015 10:40:29 +0000 (13:40 +0300)
It seems that this modification is excessive.

src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp

index d5a08f06950028694e487d9efff6cff8e268574a..5d0b01931248a57045811911e35efb543b0c2db9 100644 (file)
@@ -51,8 +51,6 @@ void SketchSolver_ConstraintMultiTranslation::process()
 
   AttributeStringPtr aMethodTypeAttr =
       myBaseConstraint->data()->string(SketchPlugin_MultiTranslation::VALUE_TYPE());
-  myIsFullValue = aMethodTypeAttr->value() != "SingleValue";
-
 
   BuilderPtr aBuilder = SketchSolver_Manager::instance()->builder();
   std::list<ConstraintWrapperPtr> aTransConstraints;
@@ -64,9 +62,6 @@ void SketchSolver_ConstraintMultiTranslation::process()
         0.0, aFullValue, aStartPoint, aEndPoint, *anEntIt);
     aTransConstraints.insert(aTransConstraints.end(), aNewConstraints.begin(), aNewConstraints.end());
   }
-  std::list<ConstraintWrapperPtr>::iterator aTCIt = aTransConstraints.begin();
-  for (; aTCIt != aTransConstraints.end(); ++ aTCIt)
-    (*aTCIt)->setIsFullValue(myIsFullValue);
 
   myStorage->addConstraint(myBaseConstraint, aTransConstraints);