1 # Creation of a Filling
5 gg = salome.ImportComponentGUI("GEOM")
13 # create a vertex and a vector
14 p1 = geompy.MakeVertex( -30., -30., 50.)
15 p2 = geompy.MakeVertex( -60., -60., 30.)
16 p3 = geompy.MakeVertex( -30., -30., 10.)
18 # create an arc from three points
19 arc = geompy.MakeArc(p1, p2, p3)
20 ShapeListCompound = []
23 S = geompy.MakeTranslation(arc, i * 50., 0., 0.)
24 ShapeListCompound.append(S)
27 compound = geompy.MakeCompound(ShapeListCompound)
30 filling = geompy.MakeFilling(compound, mindeg, maxdeg, tol3d, tol2d, nbiter)
32 # add objects in the study
33 id_compound = geompy.addToStudy(compound,"Compound")
34 id_filling = geompy.addToStudy(filling,"Filling")
36 # display the compound and the filling
37 gg.createAndDisplayGO(id_compound)
38 gg.createAndDisplayGO(id_filling)
39 gg.setDisplayMode(id_filling,1)