mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
Fix doc examples
This commit is contained in:
parent
f782dacab1
commit
d627ece45e
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user