mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +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
|
grouping_elements_ex08.py
|
||||||
measurements_ex01.py
|
measurements_ex01.py
|
||||||
measurements_ex02.py
|
measurements_ex02.py
|
||||||
|
measurements_ex03.py
|
||||||
modifying_meshes_ex01.py
|
modifying_meshes_ex01.py
|
||||||
modifying_meshes_ex02.py
|
modifying_meshes_ex02.py
|
||||||
modifying_meshes_ex03.py
|
modifying_meshes_ex03.py
|
||||||
|
@ -5,7 +5,7 @@ from SMESH_mechanic import *
|
|||||||
mesh.Tetrahedron()
|
mesh.Tetrahedron()
|
||||||
mesh.Compute()
|
mesh.Compute()
|
||||||
# remove some volumes to have volumes with bare borders
|
# 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
|
# get all volumes with bare borders
|
||||||
filter = smesh.GetFilter(SMESH.VOLUME, SMESH.FT_BareBorderVolume)
|
filter = smesh.GetFilter(SMESH.VOLUME, SMESH.FT_BareBorderVolume)
|
||||||
ids = mesh.GetIdsFromFilter(filter)
|
ids = mesh.GetIdsFromFilter(filter)
|
||||||
|
@ -6,7 +6,7 @@ from SMESH_mechanic import *
|
|||||||
# make the mesh quadratic
|
# make the mesh quadratic
|
||||||
mesh.ConvertToQuadratic()
|
mesh.ConvertToQuadratic()
|
||||||
# make some elements bi-quadratic
|
# 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 )
|
mesh.ConvertToQuadratic( theSubMesh=mesh.Group( face ), theToBiQuad=True )
|
||||||
|
|
||||||
# get triangles with 7 nodes
|
# get triangles with 7 nodes
|
||||||
|
Loading…
Reference in New Issue
Block a user