1 # Creation of a Filling
4 salome.salome_init_without_session()
6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New()
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)
25 S = geompy.MakeTranslation(arc, i * 50., 0., 0.)
26 ContoursList.append(S)
28 compound = geompy.MakeCompound(ContoursList)
31 filling = geompy.MakeFilling(compound, mindeg, maxdeg, tol3d, tol2d, nbiter)
33 # add objects in the study
34 id_compound = geompy.addToStudy(compound,"Compound")
35 id_filling = geompy.addToStudy(filling,"Filling")
37 # display the compound and the filling
38 gg.createAndDisplayGO(id_compound)
39 gg.createAndDisplayGO(id_filling)
40 gg.setDisplayMode(id_filling,1)