X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBuildAPI%2FBuildAPI_Vertex.h;h=d2a6235fd5348fb218dea5d64e38d720446c0f27;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=6a96640a488d964b798e75a09b581abe1f85bb23;hpb=97917d3698f5a2f7fc9596e7c755ff8f6751e373;p=modules%2Fshaper.git diff --git a/src/BuildAPI/BuildAPI_Vertex.h b/src/BuildAPI/BuildAPI_Vertex.h index 6a96640a4..d2a6235fd 100644 --- a/src/BuildAPI/BuildAPI_Vertex.h +++ b/src/BuildAPI/BuildAPI_Vertex.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -44,13 +44,21 @@ public: explicit BuildAPI_Vertex(const std::shared_ptr& theFeature, const std::list& theBaseObjects); + /// Constructor with values. + BUILDAPI_EXPORT + explicit BuildAPI_Vertex(const std::shared_ptr& theFeature, + const std::list& theBaseObjects, + const bool theDoIntersect); + /// Destructor. BUILDAPI_EXPORT virtual ~BuildAPI_Vertex(); - INTERFACE_1(BuildPlugin_Vertex::ID(), + INTERFACE_2(BuildPlugin_Vertex::ID(), baseObjects, BuildPlugin_Vertex::BASE_OBJECTS_ID(), - ModelAPI_AttributeSelectionList, /** Base objects */) + ModelAPI_AttributeSelectionList, /** Base objects */, + doIntersect, BuildPlugin_Vertex::INTERSECT_ID(), + ModelAPI_AttributeBoolean, /** Compute intersections */) /// Modify base attribute of the feature. BUILDAPI_EXPORT @@ -70,4 +78,11 @@ BUILDAPI_EXPORT VertexPtr addVertex(const std::shared_ptr& thePart, const std::list& theBaseObjects); +/// \ingroup CPPHighAPI +/// \brief Create Vertex feature. +BUILDAPI_EXPORT +VertexPtr addVertex(const std::shared_ptr& thePart, + const std::list& theBaseObjects, + const bool theDoIntersect); + #endif // BuildAPI_Vertex_H_