Salome HOME
Merge branch 'master' into cgt/devCEA
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_FaceBuilder.cpp
index 25c0a005ab2151f322556e86b02aa7c77f0e83d2..0dce2f9f99cfd1010f8ee45e5d0803e29ef94f6b 100644 (file)
 #include <TopoDS_Face.hxx>
 
 //==================================================================================================
-std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::squareFace(const std::shared_ptr<GeomAPI_Pnt> theCenter,
-                                                                  const std::shared_ptr<GeomAPI_Dir> theNormal,
-                                                                  const double theSize)
+std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::squareFace(
+  const std::shared_ptr<GeomAPI_Pnt> theCenter,
+  const std::shared_ptr<GeomAPI_Dir> theNormal,
+  const double theSize)
 {
   const gp_Pnt& aCenter = theCenter->impl<gp_Pnt>();
   const gp_Dir& aDir = theNormal->impl<gp_Dir>();
@@ -38,8 +39,9 @@ std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::squareFace(const std::sha
 }
 
 //==================================================================================================
-std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::squareFace(const std::shared_ptr<GeomAPI_Pln> thePlane,
-                                                                  const double theSize)
+std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::squareFace(
+  const std::shared_ptr<GeomAPI_Pln> thePlane,
+  const double theSize)
 {
   // half of the size in each direction from the center
   BRepBuilderAPI_MakeFace aFaceBuilder(thePlane->impl<gp_Pln>(),
@@ -52,8 +54,9 @@ std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::squareFace(const std::sha
 }
 
 //==================================================================================================
-std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::planarFace(const std::shared_ptr<GeomAPI_Pnt> theCenter,
-                                                                  const std::shared_ptr<GeomAPI_Dir> theNormal)
+std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::planarFace(
+  const std::shared_ptr<GeomAPI_Pnt> theCenter,
+  const std::shared_ptr<GeomAPI_Dir> theNormal)
 {
   const gp_Pnt& aCenter = theCenter->impl<gp_Pnt>();
   const gp_Dir& aDir = theNormal->impl<gp_Dir>();
@@ -65,16 +68,17 @@ std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::planarFace(const std::sha
 }
 
 //==================================================================================================
-std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::planarFace(const std::shared_ptr<GeomAPI_Pln> thePlane,
-                                                                  const double theX, const double theY,
-                                                                  const double theWidth, const double theHeight)
+std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::planarFace(
+  const std::shared_ptr<GeomAPI_Pln> thePlane,
+  const double theX, const double theY,
+  const double theWidth, const double theHeight)
 {
   double aA, aB, aC, aD;
   thePlane->coefficients(aA, aB, aC, aD);
   gp_Pln aPlane(aA, aB, aC, aD);
 
   // half of the size in each direction from the center
-  BRepBuilderAPI_MakeFace aFaceBuilder(aPlane, theX, theX + theWidth, 
+  BRepBuilderAPI_MakeFace aFaceBuilder(aPlane, theX, theX + theWidth,
                                        theY, theY + theHeight);
   std::shared_ptr<GeomAPI_Face> aRes(new GeomAPI_Face());
   aRes->setImpl(new TopoDS_Face(aFaceBuilder.Face()));