1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomAPI_Vertex.hxx
4 // Created: 16 Dec 2014
5 // Author: Vitaly Smetannikov
7 #ifndef GeomAPI_Vertex_H_
8 #define GeomAPI_Vertex_H_
10 #include <GeomAPI_Shape.h>
14 /// \class GeomAPI_Vertex
15 /// \ingroup DataModel
16 /// \brief Interface to the vertex object.
17 class GeomAPI_Vertex: public GeomAPI_Shape
20 /// Creation of empty (null) shape.
24 /// Creation of vertex by the vertex-shape.
26 GeomAPI_Vertex(const std::shared_ptr<GeomAPI_Shape>& theShape);
28 /// Creation of vertex by 3d coordinates.
30 GeomAPI_Vertex(double theX, double theY, double theZ);
32 /// Returns the first vertex coordinates of the edge.
34 std::shared_ptr<GeomAPI_Pnt> point();
36 /// Returns true if the current edge is geometrically equal to the given edge.
38 bool isEqual(const std::shared_ptr<GeomAPI_Shape> theVert) const;