2 from salome.geom import geomBuilder
3 geompy = geomBuilder.New(salome.myStudy)
5 # create a could of points
7 geompy.MakeVertex( 0,0,0 ),
8 geompy.MakeVertex( 9,0,0 ),
9 geompy.MakeVertex( 0,9,0 ),
10 geompy.MakeVertex( 9,9,0 ),
11 geompy.MakeVertex( 3,3,1 ),
12 geompy.MakeVertex( 6,6,2 )]
14 # create SmoothingSurface object
15 smoothingsurface = geompy.MakeSmoothingSurface( points )
17 # add object in the study
18 id_smoothingsurface = geompy.addToStudy(smoothingsurface,"SmoothingSurface")
20 # display smoothingsurface
21 gg = salome.ImportComponentGUI("GEOM")
22 gg.createAndDisplayGO(id_smoothingsurface)