From: mpv Date: Thu, 30 Oct 2014 14:01:20 +0000 (+0300) Subject: Set fixed constraint on external edge selection: this must increase performance a lot X-Git-Tag: V_0.5~58^2~4^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2300f9cc5a733cb8ac350e540243336f1aa23a1e;p=modules%2Fshaper.git Set fixed constraint on external edge selection: this must increase performance a lot --- diff --git a/src/PartSet/PartSet_Tools.cpp b/src/PartSet/PartSet_Tools.cpp index 916a31a71..668cb4653 100644 --- a/src/PartSet/PartSet_Tools.cpp +++ b/src/PartSet/PartSet_Tools.cpp @@ -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(); } }