]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Use external object as a mirror line
authorazv <azv@opencascade.com>
Fri, 17 Apr 2015 11:02:33 +0000 (14:02 +0300)
committerazv <azv@opencascade.com>
Fri, 17 Apr 2015 11:02:56 +0000 (14:02 +0300)
src/SketchSolver/SketchSolver_ConstraintMirror.cpp

index c27000bd14eb292ddee8239d80eaa601f68cd092..6bb2a9088823a1e1a46cd23f5fa3301dcf5ad140 100644 (file)
@@ -189,6 +189,8 @@ void SketchSolver_ConstraintMirror::process()
 
   // Set the mirror line unchanged during constraint recalculation
   for (int i = 0; i < 2; i++) {
+    if (myStorage->isPointFixed(aMirrorLine.point[i], aConstraint.h, true))
+      continue;
     aConstraint = Slvs_MakeConstraint(
         SLVS_E_UNKNOWN, myGroup->getId(), SLVS_C_WHERE_DRAGGED, myGroup->getWorkplaneId(), 0.0,
         aMirrorLine.point[i], SLVS_E_UNKNOWN, SLVS_E_UNKNOWN, SLVS_E_UNKNOWN);