Fix doc examples

This commit is contained in:
Gilles DAVID 2017-05-09 14:20:43 +02:00
parent f782dacab1
commit d627ece45e
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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)

View File

@ -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