From: Gilles DAVID Date: Tue, 9 May 2017 12:20:43 +0000 (+0200) Subject: Fix doc examples X-Git-Tag: V9_0_0~6^2~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d627ece45efdf6dd2b71d826a4c334c16e87fbe0;p=modules%2Fsmesh.git Fix doc examples --- diff --git a/doc/salome/examples/CMakeLists.txt b/doc/salome/examples/CMakeLists.txt index 552a9d1b2..2dfdf7bcf 100644 --- a/doc/salome/examples/CMakeLists.txt +++ b/doc/salome/examples/CMakeLists.txt @@ -110,6 +110,7 @@ SET(GOOD_TESTS grouping_elements_ex08.py measurements_ex01.py measurements_ex02.py + measurements_ex03.py modifying_meshes_ex01.py modifying_meshes_ex02.py modifying_meshes_ex03.py diff --git a/doc/salome/examples/filters_ex24.py b/doc/salome/examples/filters_ex24.py index f5f07b024..ffe922691 100644 --- a/doc/salome/examples/filters_ex24.py +++ b/doc/salome/examples/filters_ex24.py @@ -5,7 +5,7 @@ from SMESH_mechanic import * mesh.Tetrahedron() mesh.Compute() # remove some volumes to have volumes with bare borders -mesh.RemoveElements( mesh.GetElementsByType(VOLUME)[0:5] ) +mesh.RemoveElements(mesh.GetElementsByType(SMESH.VOLUME)[0:5]) # get all volumes with bare borders filter = smesh.GetFilter(SMESH.VOLUME, SMESH.FT_BareBorderVolume) ids = mesh.GetIdsFromFilter(filter) diff --git a/doc/salome/examples/filters_ex37.py b/doc/salome/examples/filters_ex37.py index 06d69d715..0f1a0a8ff 100644 --- a/doc/salome/examples/filters_ex37.py +++ b/doc/salome/examples/filters_ex37.py @@ -6,7 +6,7 @@ from SMESH_mechanic import * # make the mesh quadratic mesh.ConvertToQuadratic() # make some elements bi-quadratic -for face in SubFaceL[: len(SubFaceL)/2]: +for face in SubFaceL[: len(SubFaceL) // 2]: mesh.ConvertToQuadratic( theSubMesh=mesh.Group( face ), theToBiQuad=True ) # get triangles with 7 nodes