]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Set fixed constraint on external edge selection: this must increase performance a lot
authormpv <mikhail.ponikarov@opencascade.com>
Thu, 30 Oct 2014 14:01:20 +0000 (17:01 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Thu, 30 Oct 2014 14:01:20 +0000 (17:01 +0300)
src/PartSet/PartSet_Tools.cpp

index 916a31a71f2a4e958e3ddbf706eb0ce35df99548..668cb4653b28ced6903969b4fda8b250d0279b7f 100644 (file)
@@ -412,7 +412,14 @@ ResultPtr PartSet_Tools::createFixedObjectByEdge(const ModuleBase_ViewerPrs& the
       anEdge->setImpl(new TopoDS_Shape(aShape));
 
       anAttr->setValue(aRes, anEdge);
+
       aMyFeature->execute();
+
+      // fix this edge
+      FeaturePtr aFix = theSketch->addFeature(SketchPlugin_ConstraintRigid::ID());
+      aFix->data()->refattr(SketchPlugin_Constraint::ENTITY_A())->
+        setObject(aMyFeature->lastResult());
+
       return aMyFeature->lastResult();
     }
   }