1 # Creation of a Filling
6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
8 gg = salome.ImportComponentGUI("GEOM")
16 # create a vertex and a vector
17 p1 = geompy.MakeVertex( -30., -30., 50.)
18 p2 = geompy.MakeVertex( -60., -60., 30.)
19 p3 = geompy.MakeVertex( -30., -30., 10.)
21 # create an arc from three points
22 arc = geompy.MakeArc(p1, p2, p3)
23 ShapeListCompound = []
26 S = geompy.MakeTranslation(arc, i * 50., 0., 0.)
27 ShapeListCompound.append(S)
30 compound = geompy.MakeCompound(ShapeListCompound)
33 filling = geompy.MakeFilling(compound, mindeg, maxdeg, tol3d, tol2d, nbiter)
35 # add objects in the study
36 id_compound = geompy.addToStudy(compound,"Compound")
37 id_filling = geompy.addToStudy(filling,"Filling")
39 # display the compound and the filling
40 gg.createAndDisplayGO(id_compound)
41 gg.createAndDisplayGO(id_filling)
42 gg.setDisplayMode(id_filling,1)