X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fexamples%2Fhexoticdemo_vl.py;h=def14bd13b79580c0502516f35785f5d7c9d61ae;hb=refs%2Fheads%2Ffixes_for_950;hp=c28dc83639cc9ab89893128649b20668b3757ff9;hpb=1712d74dc4aec3b7c6c74cf899b28ca44e5ae879;p=plugins%2Fhexoticplugin.git diff --git a/doc/salome/examples/hexoticdemo_vl.py b/doc/salome/examples/hexoticdemo_vl.py index c28dc83..def14bd 100644 --- a/doc/salome/examples/hexoticdemo_vl.py +++ b/doc/salome/examples/hexoticdemo_vl.py @@ -1,29 +1,9 @@ -# Copyright (C) 2015-2016 CEA/DEN, EDF R&D, OPEN CASCADE -# -# 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 salome salome.salome_init() from salome.geom import geomBuilder geompy = geomBuilder.New() -import SMESH, SALOMEDS from salome.smesh import smeshBuilder smesh = smeshBuilder.New() @@ -35,19 +15,19 @@ geompy.addToStudy( Box_1, 'Box_1' ) Mesh_mghexa_vl = smesh.Mesh(Box_1, "Mesh_mghexa_vl") Regular_1D = Mesh_mghexa_vl.Segment() -Local_Length_1 = Regular_1D.LocalLength(8.66025,None,1e-07) +Local_Length_1 = Regular_1D.LocalLength(8.66025) MEFISTO_2D = Mesh_mghexa_vl.Triangle(algo=smeshBuilder.MEFISTO) MG_Hexa = Mesh_mghexa_vl.Hexahedron(algo=smeshBuilder.MG_Hexa) MG_Hexa_Parameters = MG_Hexa.Parameters() -MG_Hexa.SetViscousLayers(5,5,3,smeshBuilder.Inward,[13,23]) +MG_Hexa.SetViscousLayers(5,5,3,[13,23]) MG_Hexa_Parameters.SetMinSize( 2 ) MG_Hexa_Parameters.SetMaxSize( 4 ) MG_Hexa_Parameters.SetHexesMinLevel( 2 ) MG_Hexa_Parameters.SetHexesMaxLevel( 4 ) # Compute -Mesh_mghexa_vl.Compute() +assert Mesh_mghexa_vl.Compute(), "Meshing fails" # End of script