X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_SWIG%2FSMESH_Nut.py;h=45835da2152f3926c0e0c95a814c05a16d42972b;hb=ee27f66d0634c48575a69e085a571ab4c0306e6d;hp=a4f5017cfb8ca08ce3eb728e7206a6c2cb0d113d;hpb=5fec7e4eb742072b134c5631c80bd3cbadc92681;p=modules%2Fsmesh.git diff --git a/src/SMESH_SWIG/SMESH_Nut.py b/src/SMESH_SWIG/SMESH_Nut.py index a4f5017cf..45835da21 100755 --- a/src/SMESH_SWIG/SMESH_Nut.py +++ b/src/SMESH_SWIG/SMESH_Nut.py @@ -1,3 +1,22 @@ +# Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# ##################################################################### #Created :17/02/2005 #Auhtor :MASLOV Eugeny, KOVALTCHUK Alexey @@ -89,7 +108,7 @@ smeshgui.SetName( idmesh, "Nut" ) #HYPOTHESIS CREATION print "-------------------------- Average length" theAverageLength = 5 -hAvLength = smesh.CreateHypothesis( "LocalLength", "libStdMeshersEngine.so" ) +hAvLength = smesh.CreateHypothesis( "LocalLength", "StdMeshersEngine" ) hAvLength.SetLength( theAverageLength ) print hAvLength.GetName() print hAvLength.GetId() @@ -97,7 +116,7 @@ smeshgui.SetName(salome.ObjectToID(hAvLength), "AverageLength_5") print "-------------------------- MaxElementArea" theMaxElementArea = 20 -hArea20 = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" ) +hArea20 = smesh.CreateHypothesis( "MaxElementArea", "StdMeshersEngine" ) hArea20.SetMaxElementArea( theMaxElementArea ) print hArea20.GetName() print hArea20.GetId() @@ -106,7 +125,7 @@ smeshgui.SetName(salome.ObjectToID(hArea20), "MaxElementArea_20") print "-------------------------- MaxElementVolume" theMaxElementVolume = 150 -hVolume150 = smesh.CreateHypothesis( "MaxElementVolume", "libStdMeshersEngine.so" ) +hVolume150 = smesh.CreateHypothesis( "MaxElementVolume", "StdMeshersEngine" ) hVolume150.SetMaxElementVolume( theMaxElementVolume ) print hVolume150.GetName() print hVolume150.GetId() @@ -119,7 +138,7 @@ mesh.AddHypothesis(shape_mesh, hVolume150) print "-------------------------- Regular_1D" -algoReg1D = smesh.CreateHypothesis( "Regular_1D", "libStdMeshersEngine.so" ) +algoReg1D = smesh.CreateHypothesis( "Regular_1D", "StdMeshersEngine" ) listHyp = algoReg1D.GetCompatibleHypothesis() for hyp in listHyp: print hyp @@ -128,7 +147,7 @@ print algoReg1D.GetId() smeshgui.SetName(salome.ObjectToID(algoReg1D), "Wire discretisation") print "-------------------------- MEFISTO_2D" -algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" ) +algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "StdMeshersEngine" ) listHyp = algoMef.GetCompatibleHypothesis() for hyp in listHyp: print hyp @@ -138,7 +157,7 @@ smeshgui.SetName(salome.ObjectToID(algoMef), "Triangle (Mefisto)") print "-------------------------- NETGEN_3D" -algoNg = smesh.CreateHypothesis( "NETGEN_3D", "libNETGENEngine.so" ) +algoNg = smesh.CreateHypothesis( "NETGEN_3D", "NETGENEngine" ) print algoNg.GetName() print algoNg.GetId() smeshgui.SetName(salome.ObjectToID(algoNg), "Tetrahedron (NETGEN)")