X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_FaceBuilder.cpp;h=c197873082d41d554107f2006be01495ce820bd6;hb=48a4bd38c2b9d1b6b51ebca992a5eab30e85d99b;hp=d03b76169da3c224762f41fcdb5057e3885333cb;hpb=5352bbb1915f98d1f02b1cb953a2de19b286a28c;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp index d03b76169..c19787308 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp @@ -42,18 +42,6 @@ std::shared_ptr GeomAlgoAPI_FaceBuilder::square( return aRes; } -std::shared_ptr GeomAlgoAPI_FaceBuilder::plane(std::shared_ptr theCenter, - std::shared_ptr theNormal) -{ - const gp_Pnt& aCenter = theCenter->impl(); - const gp_Dir& aDir = theNormal->impl(); - gp_Pln aPlane(aCenter, aDir); - BRepBuilderAPI_MakeFace aFaceBuilder(aPlane); - std::shared_ptr aRes(new GeomAPI_Shape); - aRes->setImpl(new TopoDS_Shape(aFaceBuilder.Face())); - return aRes; -} - std::shared_ptr GeomAlgoAPI_FaceBuilder::plane( std::shared_ptr theFace) { @@ -82,6 +70,18 @@ std::shared_ptr GeomAlgoAPI_FaceBuilder::plane( return aResult; } +std::shared_ptr GeomAlgoAPI_FaceBuilder::planarFace(std::shared_ptr theCenter, + std::shared_ptr theNormal) +{ + const gp_Pnt& aCenter = theCenter->impl(); + const gp_Dir& aDir = theNormal->impl(); + gp_Pln aPlane(aCenter, aDir); + BRepBuilderAPI_MakeFace aFaceBuilder(aPlane); + std::shared_ptr aRes(new GeomAPI_Shape); + aRes->setImpl(new TopoDS_Shape(aFaceBuilder.Face())); + return aRes; +} + std::shared_ptr GeomAlgoAPI_FaceBuilder::planarFace(std::shared_ptr thePlane, double theX, double theY, double theWidth, double theHeight)