]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make fixed point
authorazv <azv@opencascade.com>
Wed, 15 Apr 2015 11:50:35 +0000 (14:50 +0300)
committerazv <azv@opencascade.com>
Wed, 15 Apr 2015 11:52:26 +0000 (14:52 +0300)
src/SketchSolver/SketchSolver_ConstraintRigid.cpp

index 49fded0732536720edf771eb86dbf4f7dd9393df..3ab5794b2c6402fe1c0c7803da54da4bc9f7439d 100644 (file)
@@ -6,6 +6,7 @@
 #include <SketchPlugin_Circle.h>
 #include <SketchPlugin_ConstraintRigid.h>
 #include <SketchPlugin_Line.h>
+#include <SketchPlugin_Point.h>
 
 #include <GeomAPI_Pnt2d.h>
 #include <GeomAPI_XY.h>
@@ -53,6 +54,9 @@ void SketchSolver_ConstraintRigid::process()
     Slvs_Entity aCirc = myStorage->getEntity(anEntID);
     fixCircle(aCirc);
   }
+  else if (myFeatureMap.begin()->first->getKind() == SketchPlugin_Point::ID()) {
+    fixPoint(anEntID);
+  }
 }