From d627ece45efdf6dd2b71d826a4c334c16e87fbe0 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Tue, 9 May 2017 14:20:43 +0200 Subject: [PATCH] Fix doc examples --- doc/salome/examples/CMakeLists.txt | 1 + doc/salome/examples/filters_ex24.py | 2 +- doc/salome/examples/filters_ex37.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2