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