X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Vertex.h;h=c1ec7109c3d669158ffad59dd374360ddc6f1d32;hb=73502ac782ffc45a3acf665ded34f582b07ec4d5;hp=fab2840b4cb99ff9e91b01d1f899795e84c5f319;hpb=3527295683587eb7ed5cc6c37aa7fe65bd27da64;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Vertex.h b/src/GeomAPI/GeomAPI_Vertex.h index fab2840b4..c1ec7109c 100644 --- a/src/GeomAPI/GeomAPI_Vertex.h +++ b/src/GeomAPI/GeomAPI_Vertex.h @@ -16,20 +16,28 @@ class GeomAPI_Pnt; * \brief Interface to the vertex object */ -class GEOMAPI_EXPORT GeomAPI_Vertex : public GeomAPI_Shape +class GeomAPI_Vertex : public GeomAPI_Shape { public: /// Creation of empty (null) shape + GEOMAPI_EXPORT GeomAPI_Vertex(); - /// Creation of edge by the edge-shape + /// Creation of vertex by the vertex-shape + GEOMAPI_EXPORT GeomAPI_Vertex(const std::shared_ptr& theShape); + /// Creation of vertex by 3d coordinates + GEOMAPI_EXPORT + GeomAPI_Vertex(double theX, double theY, double theZ); + /// Returns the first vertex coordinates of the edge + GEOMAPI_EXPORT std::shared_ptr point(); /// Returns true if the current edge is geometrically equal to the given edge - bool isEqual(std::shared_ptr theVert); + GEOMAPI_EXPORT + bool isEqual(const std::shared_ptr theVert) const; }; #endif