]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelHighAPI/ModelHighAPI_Tools.cpp
Salome HOME
Add SketchAPI and Line feature. Also fix tests.
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Tools.cpp
index 0c82867a682b8d00b9240a0efa55a8abf7404775..46bf241bd0ad867b36057eaacec6b8ae94624c75 100644 (file)
@@ -38,6 +38,12 @@ void fillAttribute(const std::shared_ptr<GeomAPI_Pnt2d> & theValue,
   theAttribute->setValue(theValue);
 }
 
+void fillAttribute(const std::shared_ptr<GeomDataAPI_Point2D> & theAttribute,
+                   double theX, double theY)
+{
+  theAttribute->setValue(theX, theY);
+}
+
 //--------------------------------------------------------------------------------------
 void fillAttribute(const std::shared_ptr<GeomAPI_Dir> & theValue,
                    const std::shared_ptr<GeomDataAPI_Dir> & theAttribute)