]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Edition of the data tree
authorakk <akk@opencascade.com>
Fri, 11 Mar 2005 13:03:55 +0000 (13:03 +0000)
committerakk <akk@opencascade.com>
Fri, 11 Mar 2005 13:03:55 +0000 (13:03 +0000)
examples/InLine_Nut.py

index f116a9a488ce3361b2679f6ff7907ccab1060a0b..8a4f681c7419b676d81fc108004c01d07cd2eb13 100755 (executable)
@@ -109,27 +109,28 @@ def Mesh(theNameOfTheShape = "Cut_1", theAverageLength = 5, theMaxElementArea =
         print hyp
         print algoReg1D.GetName()
         print algoReg1D.GetId()
-        SetName(ObjectToID(algoReg1D), "Wire discretisation")
+    SetName(ObjectToID(algoReg1D), "Wire discretisation")
         
-        print "-------------------------- MEFISTO_2D"
-        algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" )
-        listHyp = algoMef.GetCompatibleHypothesis()
-        for hyp in listHyp:
-            print hyp
-            print algoMef.GetName()
-            print algoMef.GetId()
-            SetName(ObjectToID(algoMef), "Triangle (Mefisto)")
+    print "-------------------------- MEFISTO_2D"
+    algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" )
+    listHyp = algoMef.GetCompatibleHypothesis()
+    for hyp in listHyp:
+        print hyp
+        print algoMef.GetName()
+        print algoMef.GetId()
+    SetName(ObjectToID(algoMef), "Triangle (Mefisto)")
 
-            print "-------------------------- NETGEN_3D"
-            
-            algoNg = smesh.CreateHypothesis( "NETGEN_3D", "libNETGENEngine.so" )
-            print algoNg.GetName()
-            print algoNg.GetId()
-            SetName(ObjectToID(algoNg), "Tetrahedron (NETGEN)")
-            mesh.AddHypothesis(shape_mesh, algoReg1D)
-            mesh.AddHypothesis(shape_mesh, algoMef)
-            mesh.AddHypothesis(shape_mesh, algoNg)
-            smesh.Compute(mesh,shape_mesh)
+    print "-------------------------- NETGEN_3D"        
+    algoNg = smesh.CreateHypothesis( "NETGEN_3D", "libNETGENEngine.so" )
+    for hyp in listHyp:
+        print hyp
+        print algoNg.GetName()
+        print algoNg.GetId()
+    SetName(ObjectToID(algoNg), "Tetrahedron (NETGEN)")
+    mesh.AddHypothesis(shape_mesh, algoReg1D)
+    mesh.AddHypothesis(shape_mesh, algoMef)
+    mesh.AddHypothesis(shape_mesh, algoNg)
+    smesh.Compute(mesh,shape_mesh)
             
     print "Information about the mesh:"
     print "Number of nodes       : ", mesh.NbNodes()