From: akk Date: Fri, 11 Mar 2005 13:03:55 +0000 (+0000) Subject: Edition of the data tree X-Git-Tag: T3_0_0_a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1d63ac03eac5066bad832883bc69ef39a09e7d68;p=modules%2Fsuperv.git Edition of the data tree --- diff --git a/examples/InLine_Nut.py b/examples/InLine_Nut.py index f116a9a..8a4f681 100755 --- a/examples/InLine_Nut.py +++ b/examples/InLine_Nut.py @@ -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()