Salome HOME
Fix for the issue #2115
[modules/shaper.git] / src / GeomAPI / GeomAPI_XYZ.cpp
index 1b8e0e457f068914f6b433274b42025d7e06844e..b20cbf741d277531a6247a79d5d205fb1ab7f93c 100644 (file)
@@ -8,7 +8,7 @@
 
 #include<gp_XYZ.hxx>
 
-#define MY_XYZ static_cast<gp_XYZ*>(myImpl)
+#define MY_XYZ implPtr<gp_XYZ>()
 
 GeomAPI_XYZ::GeomAPI_XYZ(const double theX, const double theY, const double theZ)
     : GeomAPI_Interface(new gp_XYZ(theX, theY, theZ))
@@ -86,3 +86,7 @@ double GeomAPI_XYZ::distance(const std::shared_ptr<GeomAPI_XYZ>& theOther) const
   return aResult.Modulus();
 }
 
+double GeomAPI_XYZ::squareModulus() const
+{
+  return MY_XYZ->SquareModulus();
+}