]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAlgoAPI/GeomAlgoAPI_Cylinder.cpp
Salome HOME
Adding the "Cylinder" primitive (the following).
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Cylinder.cpp
index 4ee724e50e60798fb092d570aa0756fc39467696..e487b6a5558a3b281d355d215b1f2e08b28cd6e4 100644 (file)
@@ -77,20 +77,21 @@ bool GeomAlgoAPI_Cylinder::check()
 void GeomAlgoAPI_Cylinder::build()
 {
   myCreatedFaces.clear();
-  
+
   const gp_Ax2& anAxis = myAxis->impl<gp_Ax2>();
-  
+
   // Construct the cylinder
   BRepPrimAPI_MakeCylinder *aCylinderMaker;
-  
+
   if (withAngle) {
-    aCylinderMaker = new  BRepPrimAPI_MakeCylinder(anAxis, myRadius, myHeight, myAngle * M_PI / 180.);
+    aCylinderMaker =
+      new BRepPrimAPI_MakeCylinder(anAxis, myRadius, myHeight, myAngle * M_PI / 180.);
   } else {
-    aCylinderMaker = new  BRepPrimAPI_MakeCylinder(anAxis, myRadius, myHeight);
+    aCylinderMaker = new BRepPrimAPI_MakeCylinder(anAxis, myRadius, myHeight);
   }
-  
+
   aCylinderMaker->Build();
-  
+
   if (!aCylinderMaker->IsDone()) {
     return;
   }
@@ -105,8 +106,8 @@ void GeomAlgoAPI_Cylinder::build()
     myError = "Cylinder builder :: resulting shape is null.";
     return;
   }
-  
+
   setImpl(aCylinderMaker);
-  
+
   setDone(true);
 }