Salome HOME
[EDF25906] : redirect output of the wget into MESSAGE macro
[modules/smesh.git] / doc / examples / filters_ex30.py
1 # Belong to Surface
2
3 # create mesh
4 from mechanic import *
5
6 # create b-spline
7 spline_1 = geom_builder.MakeInterpol([p4,p6,p3,p1])
8 surface_1 = geom_builder.MakePrismVecH( spline_1, vz, 70.0 )
9 geom_builder.addToStudy(surface_1, "surface_1")
10
11 # get all nodes which lie on the surface \a surface_1
12 filter = smesh_builder.GetFilter(SMESH.NODE, SMESH.FT_BelongToGenSurface, surface_1)
13 ids = mesh.GetIdsFromFilter(filter)
14 print("Number of nodes which lie on the surface surface_1:", len(ids))