]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAPI/GeomAPI_Circ.cpp
Salome HOME
Changes in the presentations of features
[modules/shaper.git] / src / GeomAPI / GeomAPI_Circ.cpp
index 811ef698b29cbd17d3ea1aafe52440da07a4670c..31dbfab6cd7dcbfc5cebe735f6265d8c2e02fccc 100644 (file)
@@ -61,3 +61,13 @@ const boost::shared_ptr<GeomAPI_Pnt> GeomAPI_Circ::project(const boost::shared_p
   return aResult;
 }
 
+const boost::shared_ptr<GeomAPI_Pnt> GeomAPI_Circ::center() const
+{
+  const gp_Pnt& aCenter = MY_CIRC->Location();
+  return boost::shared_ptr<GeomAPI_Pnt>(new GeomAPI_Pnt(aCenter.X(), aCenter.Y(), aCenter.Z()));
+}
+
+double GeomAPI_Circ::radius() const
+{
+  return MY_CIRC->Radius();
+}