X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_FaceBuilder.cpp;h=4b2ebc4d26b6adfd3ca7c27a2e31b08961348584;hb=6861e302bc1262afc17afc626b050295333a3af1;hp=642e90996af905bf1de718affb8156547e6417c4;hpb=c80e8ac643930b858f4f653e2659896ba587b165;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp index 642e90996..4b2ebc4d2 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp @@ -11,13 +11,13 @@ boost::shared_ptr GeomAlgoAPI_FaceBuilder::square( boost::shared_ptr theCenter, boost::shared_ptr theNormal, const double theSize) { - gp_Pnt* aCenter = static_cast(theCenter->implementation()); - gp_Dir* aDir = static_cast(theNormal->implementation()); - gp_Pln aPlane(*aCenter, *aDir); + const gp_Pnt& aCenter = theCenter->impl(); + const gp_Dir& aDir = theNormal->impl(); + gp_Pln aPlane(aCenter, aDir); // half of the size in each direction from the center BRepBuilderAPI_MakeFace aFaceBuilder(aPlane, -theSize / 2., theSize / 2., -theSize / 2., theSize / 2.); boost::shared_ptr aRes(new GeomAPI_Shape); - aRes->setImplementation(new TopoDS_Shape(aFaceBuilder.Face())); + aRes->setImpl(new TopoDS_Shape(aFaceBuilder.Face())); return aRes; }