Salome HOME
Use fillAttribute in *API interfaces
[modules/shaper.git] / src / ConstructionAPI / ConstructionAPI_Point.cpp
index 26df2de8b15e6261ae423312947583c99a706fc4..bcfd9384899eafe093e95a6bb1c059e64931b3b9 100644 (file)
@@ -7,11 +7,7 @@
 //--------------------------------------------------------------------------------------
 #include "ConstructionAPI_Point.h"
 //--------------------------------------------------------------------------------------
-#include <ModelAPI_AttributeDouble.h>
-#include <ModelAPI_Document.h>
-#include <ModelAPI_Feature.h>
-
-#include <ModelHighAPI_Double.h>
+#include <ModelHighAPI_Tools.h>
 //--------------------------------------------------------------------------------------
 ConstructionAPI_Point::ConstructionAPI_Point(
     const std::shared_ptr<ModelAPI_Feature> & theFeature)
@@ -41,9 +37,9 @@ void ConstructionAPI_Point::setPoint(const ModelHighAPI_Double & theX,
                                      const ModelHighAPI_Double & theY,
                                      const ModelHighAPI_Double & theZ)
 {
-  theX.fillAttribute(myx);
-  theY.fillAttribute(myy);
-  theZ.fillAttribute(myz);
+  fillAttribute(theX, myx);
+  fillAttribute(theY, myy);
+  fillAttribute(theZ, myz);
 
   execute();
 }