]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ConstructionAPI/ConstructionAPI_Point.cpp
Salome HOME
Use ID() static functions of ConstructionAPI_Plane & ConstructionAPI_Point in add...
[modules/shaper.git] / src / ConstructionAPI / ConstructionAPI_Point.cpp
index e28a96bb4445c97db7c28a8b59b12d8aa57a03f2..26df2de8b15e6261ae423312947583c99a706fc4 100644 (file)
@@ -57,6 +57,6 @@ PointPtr addPoint(
     const ModelHighAPI_Double& theZ)
 {
   // TODO(spo): check that thePart is not empty
-  std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature("Point");
+  std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(ConstructionAPI_Point::ID());
   return PointPtr(new ConstructionAPI_Point(aFeature, theX, theY, theZ));
 }