Salome HOME
Merge branch 'V8_3_BR' into ngr/python3_dev
[modules/smesh.git] / doc / salome / examples / filters_ex30.py
1 # Belong to Surface
2
3 # create mesh
4 from SMESH_mechanic import *
5 # create b-spline
6 spline_1 = geompy.MakeInterpol([p4,p6,p3,p1])
7 surface_1 = geompy.MakePrismVecH( spline_1, vz, 70.0 )
8 geompy.addToStudy(surface_1, "surface_1")
9 # get all nodes which lie on the surface \a surface_1
10 filter = smesh.GetFilter(SMESH.NODE, SMESH.FT_BelongToGenSurface, surface_1)
11 ids = mesh.GetIdsFromFilter(filter)
12 print("Number of nodes which lie on the surface surface_1:", len(ids))