Salome HOME
updated copyright message
[modules/shaper.git] / src / GeomAPI / GeomAPI_WireExplorer.h
index 4328582996ec4e4f96cc550cb74aa6a344389bd6..df7bc8f680bd0d7e7d6dfe0501938d436aeaa4de 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -23,7 +23,9 @@
 #include <GeomAPI.h>
 #include <GeomAPI_Interface.h>
 
+class GeomAPI_Edge;
 class GeomAPI_Shape;
+class GeomAPI_Vertex;
 class GeomAPI_Wire;
 
 /** \class GeomAPI_WireExplorer
@@ -53,9 +55,13 @@ public:
   /// if there are no more shapes to explore.
   GEOMAPI_EXPORT void next();
 
-  /// \return the current shape in the exploration or empty pointer
+  /// \return the current edge in the exploration or empty pointer
   /// if this explorer has no more shapes to explore.
-  GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Shape> current();
+  GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Edge> current();
+
+  /// \return the current vertex in the exploration or empty pointer
+  /// if this explorer has no more shapes to explore.
+  GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Vertex> currentVertex();
 
   /// Clears the content of the explorer. It will return False on more().
   GEOMAPI_EXPORT void clear();