X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=tests%2Fenforced_mesh.py;h=121033d7ab6fde22a2f2138a7afcff3f939f8164;hb=7972d6e3ce34777547876d3f4d52fc7c09d39334;hp=97d4871dbae0590c9a9873070043f26964c48bcb;hpb=448cb526e825d0df4298790e5e3155836f82164f;p=plugins%2Fhybridplugin.git diff --git a/tests/enforced_mesh.py b/tests/enforced_mesh.py index 97d4871..121033d 100644 --- a/tests/enforced_mesh.py +++ b/tests/enforced_mesh.py @@ -1,10 +1,27 @@ # -*- coding: utf-8 -*- +# Copyright (C) 2017-2023 CEA, EDF +# +# 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 +# import sys import salome salome.salome_init() -theStudy = salome.myStudy ### ### GEOM component @@ -16,7 +33,7 @@ import math import SALOMEDS -geompy = geomBuilder.New(theStudy) +geompy = geomBuilder.New() # first cylinder r1 = 0.5 @@ -83,7 +100,7 @@ from salome.smesh import smeshBuilder from salome.StdMeshers import StdMeshersBuilder -smesh = smeshBuilder.New(theStudy) +smesh = smeshBuilder.New() Mesh_faces = smesh.Mesh(face) Mesh_faces.Triangle(algo=smeshBuilder.MG_CADSurf) @@ -182,5 +199,3 @@ assert len(Mesh_3.GetGroups()) == 1 assert Mesh_3.GetGroups()[0].GetName() == 'LayersGroup' assert Mesh_3.GetGroups()[0].Size() > 0 -if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(1)