# -*- coding: utf-8 -*-
+# Copyright (C) 2016-2021 EDF R&D
+#
+# 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, or (at your option) any later version.
+#
+# 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
+#
###
### This file is generated automatically by SALOME v7.7.0 with dump python functionality
import salome
salome.salome_init()
-theStudy = salome.myStudy
import salome_notebook
-notebook = salome_notebook.NoteBook(theStudy)
+notebook = salome_notebook.NoteBook()
###
### GEOM component
N=int(N)
from salome.geom import geomBuilder
- geompy = geomBuilder.New(theStudy)
+ geompy = geomBuilder.New()
eps=L*1.e-6
from salome.smesh import smeshBuilder
import SMESH
- smesh = smeshBuilder.New(theStudy)
+ smesh = smeshBuilder.New()
Nb_Segments_1 = smesh.CreateHypothesis('NumberOfSegments')
Nb_Segments_1.SetNumberOfSegments( N )
Length_From_Edges_1 = smesh.CreateHypothesis('LengthFromEdges')
Maillage_1.ExportMED(outFile)
#if salome.sg.hasDesktop():
- #salome.sg.updateObjBrowser(True)
+ #salome.sg.updateObjBrowser()
N=int(N)
from salome.geom import geomBuilder
- geompy = geomBuilder.New(theStudy)
+ geompy = geomBuilder.New()
eps=L*1.e-6
from salome.smesh import smeshBuilder
import SMESH
- smesh = smeshBuilder.New(theStudy)
+ smesh = smeshBuilder.New()
Nb_Segments_1 = smesh.CreateHypothesis('NumberOfSegments')
Nb_Segments_1.SetNumberOfSegments( N )
Length_From_Edges_1 = smesh.CreateHypothesis('LengthFromEdges')
Maillage_1.ExportMED(outFile)
#if salome.sg.hasDesktop():
- #salome.sg.updateObjBrowser(True)
+ #salome.sg.updateObjBrowser()