Salome HOME
untabify
authoreap <eap@opencascade.com>
Tue, 26 Jan 2010 07:16:30 +0000 (07:16 +0000)
committereap <eap@opencascade.com>
Tue, 26 Jan 2010 07:16:30 +0000 (07:16 +0000)
src/GUI/NETGENPluginGUI_HypothesisCreator.cxx
src/NETGENPlugin/NETGENPlugin_NETGEN_2D.hxx
src/NETGENPlugin/NETGENPlugin_NETGEN_2D3D.cxx
src/NETGENPlugin/NETGENPlugin_NETGEN_2D3D.hxx
src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY_i.cxx
src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx
src/NETGENPlugin/NETGENPlugin_NETGEN_3D.hxx
src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.cxx

index b3cc07fa86aa1c966f7bd69f3c114cf0b889de9a..f3a1b7fc17ef572675b3c0caa26d60b2cac78e6d 100644 (file)
@@ -260,10 +260,10 @@ bool NETGENPluginGUI_HypothesisCreator::readParamsFromHypo( NetgenHypothesisData
   if ( myIs2D )
     {
       NETGENPlugin::NETGENPlugin_Hypothesis_2D_var h_2d =
-       NETGENPlugin::NETGENPlugin_Hypothesis_2D::_narrow( initParamsHypothesis() );
+        NETGENPlugin::NETGENPlugin_Hypothesis_2D::_narrow( initParamsHypothesis() );
 
       if ( !h_2d->_is_nil() )
-       h_data.myAllowQuadrangles = h_2d->GetQuadAllowed();
+        h_data.myAllowQuadrangles = h_2d->GetQuadAllowed();
     }
   
   return true;
@@ -289,9 +289,9 @@ bool NETGENPluginGUI_HypothesisCreator::storeParamsToHypo( const NetgenHypothesi
 
     if( fineness==UserDefined )
       {
-       h->SetGrowthRate( h_data.myGrowthRate );
-       h->SetNbSegPerEdge( h_data.myNbSegPerEdge );
-       h->SetNbSegPerRadius( h_data.myNbSegPerRadius );
+        h->SetGrowthRate( h_data.myGrowthRate );
+        h->SetNbSegPerEdge( h_data.myNbSegPerEdge );
+        h->SetNbSegPerRadius( h_data.myNbSegPerRadius );
         
         aVariablesList.append(h_data.myGrowthRateVar);
         aVariablesList.append(h_data.myNbSegPerEdgeVar);
@@ -300,11 +300,11 @@ bool NETGENPluginGUI_HypothesisCreator::storeParamsToHypo( const NetgenHypothesi
     
     if ( myIs2D )
       {
-       NETGENPlugin::NETGENPlugin_Hypothesis_2D_var h_2d =
-         NETGENPlugin::NETGENPlugin_Hypothesis_2D::_narrow( h );
-       
-       if ( !h_2d->_is_nil() )
-         h_2d->SetQuadAllowed( h_data.myAllowQuadrangles );
+        NETGENPlugin::NETGENPlugin_Hypothesis_2D_var h_2d =
+          NETGENPlugin::NETGENPlugin_Hypothesis_2D::_narrow( h );
+        
+        if ( !h_2d->_is_nil() )
+          h_2d->SetQuadAllowed( h_data.myAllowQuadrangles );
       }
 
     h->SetParameters(aVariablesList.join(":").toLatin1().constData());
@@ -360,34 +360,34 @@ void NETGENPluginGUI_HypothesisCreator::onFinenessChanged()
       double aGrowthRate, aNbSegPerEdge, aNbSegPerRadius;
       
       switch ( myFineness->currentIndex() )
-       {
-       case VeryCoarse:
-         aGrowthRate = 0.7;
-         aNbSegPerEdge = 0.3;
-         aNbSegPerRadius = 1;
-         break;
-       case Coarse:
-         aGrowthRate = 0.5;
-         aNbSegPerEdge = 0.5;
-         aNbSegPerRadius = 1.5;
-         break;
-       case Fine:
-         aGrowthRate = 0.2;
-         aNbSegPerEdge = 2;
-         aNbSegPerRadius = 3;
-         break;
-       case VeryFine:
-         aGrowthRate = 0.1;
-         aNbSegPerEdge = 3;
-         aNbSegPerRadius = 5;
-         break;
-       case Moderate:
-       default:
-         aGrowthRate = 0.3;
-         aNbSegPerEdge = 1;
-         aNbSegPerRadius = 2;
-         break;
-       }
+        {
+        case VeryCoarse:
+          aGrowthRate = 0.7;
+          aNbSegPerEdge = 0.3;
+          aNbSegPerRadius = 1;
+          break;
+        case Coarse:
+          aGrowthRate = 0.5;
+          aNbSegPerEdge = 0.5;
+          aNbSegPerRadius = 1.5;
+          break;
+        case Fine:
+          aGrowthRate = 0.2;
+          aNbSegPerEdge = 2;
+          aNbSegPerRadius = 3;
+          break;
+        case VeryFine:
+          aGrowthRate = 0.1;
+          aNbSegPerEdge = 3;
+          aNbSegPerRadius = 5;
+          break;
+        case Moderate:
+        default:
+          aGrowthRate = 0.3;
+          aNbSegPerEdge = 1;
+          aNbSegPerRadius = 2;
+          break;
+        }
       
       myGrowthRate->setValue( aGrowthRate );
       myNbSegPerEdge->setValue( aNbSegPerEdge );
index 792bb36996ea2854ce118782363bcb8cac6cda2e..7f6698861d2c5b4de49b14f6b3304cbd81168a52 100644 (file)
@@ -50,7 +50,7 @@ public:
                                SMESH_Hypothesis::Hypothesis_Status& aStatus);
 
   virtual bool Compute(SMESH_Mesh& aMesh,
-                      const TopoDS_Shape& aShape);
+                       const TopoDS_Shape& aShape);
 
   virtual bool Evaluate(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape,
                         MapShapeNbElems& aResMap);
index 0dcefc05db4182e91d90b895a21c48fc5142c04f..f16743622283d79083dfafbd97af5a5e3ef13bb1 100644 (file)
@@ -141,8 +141,8 @@ bool NETGENPlugin_NETGEN_2D3D::Compute(SMESH_Mesh&         aMesh,
 //=============================================================================
 
 bool NETGENPlugin_NETGEN_2D3D::Evaluate(SMESH_Mesh&         aMesh,
-                                       const TopoDS_Shape& aShape,
-                                       MapShapeNbElems& aResMap)
+                                        const TopoDS_Shape& aShape,
+                                        MapShapeNbElems& aResMap)
 {
   NETGENPlugin_Mesher mesher(&aMesh, aShape, true);
   mesher.SetParameters(dynamic_cast<const NETGENPlugin_Hypothesis*>(_hypothesis));
index 7e066881ff8e83fe03122fda0c2a016cd73fe66c..3740bb039c683593f259dd377a7acc6ff4747c52 100644 (file)
@@ -50,11 +50,11 @@ public:
                                SMESH_Hypothesis::Hypothesis_Status& aStatus);
 
   virtual bool Compute(SMESH_Mesh& aMesh,
-                      const TopoDS_Shape& aShape);
+                       const TopoDS_Shape& aShape);
 
   virtual bool Evaluate(SMESH_Mesh& aMesh,
-                       const TopoDS_Shape& aShape,
-                       MapShapeNbElems& aResMap);
+                        const TopoDS_Shape& aShape,
+                        MapShapeNbElems& aResMap);
 
 protected:
   const SMESHDS_Hypothesis* _hypothesis;
index 6dac129c842be141e7e1dd1983df5858c4126435..dfe93eba3cc640421479ac522614b7e7f50de67e 100644 (file)
@@ -38,8 +38,8 @@
 //=============================================================================
 
 NETGENPlugin_NETGEN_2D_ONLY_i::NETGENPlugin_NETGEN_2D_ONLY_i( PortableServer::POA_ptr thePOA,
-                                     int                     theStudyId,
-                                     ::SMESH_Gen*            theGenImpl )
+                                      int                     theStudyId,
+                                      ::SMESH_Gen*            theGenImpl )
      : SALOME::GenericObj_i( thePOA ), 
        SMESH_Hypothesis_i( thePOA ), 
        SMESH_Algo_i( thePOA ),
index 42c6129c86608a136fddf4458423f90c02c3bff8..264998c5858b204ab823ecac7eeda4d3006bba42 100644 (file)
@@ -75,7 +75,7 @@ using namespace std;
 //=============================================================================
 
 NETGENPlugin_NETGEN_3D::NETGENPlugin_NETGEN_3D(int hypId, int studyId,
-                            SMESH_Gen* gen)
+                             SMESH_Gen* gen)
   : SMESH_3D_Algo(hypId, studyId, gen)
 {
   MESSAGE("NETGENPlugin_NETGEN_3D::NETGENPlugin_NETGEN_3D");
@@ -616,8 +616,8 @@ bool NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh& aMesh,
     {
       Ng_GetPoint( Netgen_mesh, nodeIndex, Netgen_point );
       SMDS_MeshNode * node = aHelper->AddNode(Netgen_point[0],
-                                             Netgen_point[1],
-                                             Netgen_point[2]);
+                                              Netgen_point[1],
+                                              Netgen_point[2]);
       nodeVec.at(nodeIndex) = node;
     }
 
@@ -626,9 +626,9 @@ bool NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh& aMesh,
     {
       Ng_GetVolumeElement(Netgen_mesh, elemIndex, Netgen_tetrahedron);
       aHelper->AddVolume (nodeVec.at( Netgen_tetrahedron[0] ),
-                         nodeVec.at( Netgen_tetrahedron[1] ),
-                         nodeVec.at( Netgen_tetrahedron[2] ),
-                         nodeVec.at( Netgen_tetrahedron[3] ));
+                          nodeVec.at( Netgen_tetrahedron[1] ),
+                          nodeVec.at( Netgen_tetrahedron[2] ),
+                          nodeVec.at( Netgen_tetrahedron[3] ));
     }
   }
 
@@ -648,8 +648,8 @@ bool NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh& aMesh,
 //=============================================================================
 
 bool NETGENPlugin_NETGEN_3D::Evaluate(SMESH_Mesh& aMesh,
-                                     const TopoDS_Shape& aShape,
-                                     MapShapeNbElems& aResMap)
+                                      const TopoDS_Shape& aShape,
+                                      MapShapeNbElems& aResMap)
 {
   int nbtri = 0, nbqua = 0;
   double fullArea = 0.0;
@@ -686,7 +686,7 @@ bool NETGENPlugin_NETGEN_3D::Evaluate(SMESH_Mesh& aMesh,
     if( anIt==aResMap.end() ) {
       SMESH_ComputeErrorPtr& smError = aSubMesh->GetComputeError();
       smError.reset( new SMESH_ComputeError(COMPERR_ALGO_FAILED,
-                                           "Submesh can not be evaluated",this));
+                                            "Submesh can not be evaluated",this));
       return false;
     }
     std::vector<int> aVec = (*anIt).second;
index ab19ef9f3594d72baa609ac8cb4296350c88198b..c3f6be0542bc78ada6c57812d309b53b7996ad81 100644 (file)
@@ -49,14 +49,14 @@ public:
                                SMESH_Hypothesis::Hypothesis_Status& aStatus);
 
   virtual bool Compute(SMESH_Mesh& aMesh,
-                      const TopoDS_Shape& aShape);
+                       const TopoDS_Shape& aShape);
 
   virtual bool Compute(SMESH_Mesh& aMesh,
                        SMESH_MesherHelper* aHelper);
   
   virtual bool Evaluate(SMESH_Mesh& aMesh,
-                       const TopoDS_Shape& aShape,
-                       MapShapeNbElems& aResMap);
+                        const TopoDS_Shape& aShape,
+                        MapShapeNbElems& aResMap);
 
 protected:
   double _maxElementVolume;
index 11b34734a578e33be1bb7e75f6dc0a360bedd5ac..e541cb6744e5b8fc9c17c9bd9f3a8f340421ce02 100644 (file)
@@ -43,8 +43,8 @@ using namespace std;
 //=============================================================================
 
 NETGENPlugin_NETGEN_3D_i::NETGENPlugin_NETGEN_3D_i( PortableServer::POA_ptr thePOA,
-                                     int                     theStudyId,
-                                     ::SMESH_Gen*            theGenImpl )
+                                      int                     theStudyId,
+                                      ::SMESH_Gen*            theGenImpl )
      : SALOME::GenericObj_i( thePOA ), 
        SMESH_Hypothesis_i( thePOA ), 
        SMESH_Algo_i( thePOA ),
@@ -52,8 +52,8 @@ NETGENPlugin_NETGEN_3D_i::NETGENPlugin_NETGEN_3D_i( PortableServer::POA_ptr theP
 {
   MESSAGE( "NETGENPlugin_NETGEN_3D_i::NETGENPlugin_NETGEN_3D_i" );
   myBaseImpl = new ::NETGENPlugin_NETGEN_3D( theGenImpl->GetANewId(),
-                                     theStudyId,
-                                     theGenImpl );
+                                      theStudyId,
+                                      theGenImpl );
 }
 
 //=============================================================================