X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomData%2FGeomData_Dir.cpp;h=d5272dda21f432786c2ca04ff8e983b99a7a5108;hb=752c9e02e6aa8ced24e9b53097cb42540d5e6a08;hp=d36e8a8f5c84685b7b3d6fbc879ee6aa03ca2fa2;hpb=3874b57fe5aba25ff5aee2a07654fc23c1ee8eb0;p=modules%2Fshaper.git diff --git a/src/GeomData/GeomData_Dir.cpp b/src/GeomData/GeomData_Dir.cpp index d36e8a8f5..d5272dda2 100644 --- a/src/GeomData/GeomData_Dir.cpp +++ b/src/GeomData/GeomData_Dir.cpp @@ -5,7 +5,8 @@ // Author: Mikhail PONIKAROV #include "GeomData_Dir.h" -#include "GeomAPI_Dir.h" +#include +#include #include #include #include @@ -49,6 +50,12 @@ std::shared_ptr GeomData_Dir::dir() new GeomAPI_Dir(myCoords->Value(0), myCoords->Value(1), myCoords->Value(2))); } +std::shared_ptr GeomData_Dir::xyz() +{ + return std::shared_ptr( + new GeomAPI_XYZ(myCoords->Value(0), myCoords->Value(1), myCoords->Value(2))); +} + GeomData_Dir::GeomData_Dir(TDF_Label& theLabel) { myIsInitialized = theLabel.FindAttribute(TDataStd_RealArray::GetID(), myCoords) == Standard_True;