X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Tools.h;h=e614074a828550745b584f46ec607058121c9045;hb=04f3d16c5347e2dd849add526fa1997d09d2f7e5;hp=31508cb9a32ca2e58a95f48b851481f81830133d;hpb=abab0a0689765a60fcec0d7861a3ef7893a685fa;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Tools.h b/src/PartSet/PartSet_Tools.h index 31508cb9a..e614074a8 100644 --- a/src/PartSet/PartSet_Tools.h +++ b/src/PartSet/PartSet_Tools.h @@ -144,10 +144,15 @@ class PARTSET_EXPORT PartSet_Tools /// \return API object of point 3D static std::shared_ptr point3D(std::shared_ptr thePoint2D, CompositeFeaturePtr theSketch); - /// Check whether there is a constraint with the feature kind given - /// \param theKind a feature kind - /// \return the boolean value - static bool isConstraintFeature(const std::string& theKind); + + /// Finds a line (arc or circle) by given edge + /// \param theShape an edge + /// \param theObject a selected result object + /// \param theSketch a sketch feature + /// \return result of found feature or NULL + static ResultPtr findFixedObjectByExternal(const TopoDS_Shape& theShape, + const ObjectPtr& theObject, + CompositeFeaturePtr theSketch); /// Creates a line (arc or circle) by given edge /// Created line will have fixed constraint @@ -155,9 +160,9 @@ class PARTSET_EXPORT PartSet_Tools /// \param theObject a selected result object /// \param theSketch a sketch feature /// \return result of created feature - static ResultPtr createFixedObjectByEdge(const TopoDS_Shape& theShape, - const ObjectPtr& theObject, - CompositeFeaturePtr theSketch); + static ResultPtr createFixedObjectByExternal(const TopoDS_Shape& theShape, + const ObjectPtr& theObject, + CompositeFeaturePtr theSketch); /// Checks whether the list of selected presentations contains the given one /// \param theSelected a list of presentations