Salome HOME
0020695: EDF 1076 GEOM: Add a new shape in GEOM: T-shape
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ArcDriver.cxx
index ad099022f9dc12d51a8b0f2e407b2d664c8f7832..2af822f420e15d076573a707ec9c9a2c2e939d03 100644 (file)
@@ -129,24 +129,24 @@ Standard_Integer GEOMImpl_ArcDriver::Execute(TFunction_Logbook& log) const
         GC_MakeArcOfCircle arc (aGeomCirc->Circ(), aP2, aP3, Standard_True);
         aShape = BRepBuilderAPI_MakeEdge(arc).Edge();
       } else if ( aType == ELLIPSE_ARC_CENTER_TWO_PNT ) { // ELLIPSE_ARC_CENTER_TWO_PNT
-       if ( aP1.Distance(aP2) <= aP1.Distance(aP3) ) {
-         // Standard_ConstructionError::Raise("Arc creation aborted: the distance from Center Point to Point 1 needs to be bigger than the distance from Center Point to Point 2");      
-         cout << "aP1.Distance(aP2) <= aP1.Distance(aP3)" << endl;
-         gp_Pnt aTmpP = aP2;
-         aP2 = aP3;
-         aP3 = aTmpP;
-       }
+        if ( aP1.Distance(aP2) <= aP1.Distance(aP3) ) {
+          // Standard_ConstructionError::Raise("Arc creation aborted: the distance from Center Point to Point 1 needs to be bigger than the distance from Center Point to Point 2");      
+          cout << "aP1.Distance(aP2) <= aP1.Distance(aP3)" << endl;
+          gp_Pnt aTmpP = aP2;
+          aP2 = aP3;
+          aP3 = aTmpP;
+        }
 
-       GC_MakeEllipse ellipse (aP2, aP3, aP1);
-       Handle(Geom_Ellipse) aGeomEllipse = ellipse.Value();
+        GC_MakeEllipse ellipse (aP2, aP3, aP1);
+        Handle(Geom_Ellipse) aGeomEllipse = ellipse.Value();
 
         gp_Vec aV1 (aP1, aP2);
         gp_Vec aV2 (aP1, aP3);
 
-       double alpha = fabs(aV1.Angle(aV2));
-       
-       GC_MakeArcOfEllipse arc (aGeomEllipse->Elips(), aP2, aP3, Standard_True);
-       aShape = BRepBuilderAPI_MakeEdge(arc).Edge();
+        double alpha = fabs(aV1.Angle(aV2));
+        
+        GC_MakeArcOfEllipse arc (aGeomEllipse->Elips(), aP2, aP3, Standard_True);
+        aShape = BRepBuilderAPI_MakeEdge(arc).Edge();
       }
     }
   }
@@ -179,10 +179,10 @@ Standard_EXPORT Handle_Standard_Type& GEOMImpl_ArcDriver_Type_()
 
   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
   static Handle_Standard_Type _aType = new Standard_Type("GEOMImpl_ArcDriver",
-                                                        sizeof(GEOMImpl_ArcDriver),
-                                                        1,
-                                                        (Standard_Address)_Ancestors,
-                                                        (Standard_Address)NULL);
+                                                         sizeof(GEOMImpl_ArcDriver),
+                                                         1,
+                                                         (Standard_Address)_Ancestors,
+                                                         (Standard_Address)NULL);
 
   return _aType;
 }