Salome HOME
NRI : Add documentation.
[modules/superv.git] / examples / NewGraphGeomEssai.py
1
2 # Generated python file of Graph GraphGeom2Essai
3
4 from SuperV import *
5 # Graph creation 
6 GraphGeom2Essai = Graph( 'GraphGeom2Essai' )
7 print GraphGeom2Essai.SetAuthor( '' )
8 print GraphGeom2Essai.SetComment( '' )
9 GraphGeom2Essai.Coords( 0 , 0 )
10
11 # Creation of Nodes
12 MakeSphere = GraphGeom2Essai.Node( 'GEOM' , 'GEOM' , 'MakeSphere' )
13 print MakeSphere.SetAuthor( '' )
14 print MakeSphere.SetContainer( 'FactoryServer' )
15 print MakeSphere.SetComment( '' )
16 MakeSphere.Coords( 17 , 75 )
17 MakeCopy = GraphGeom2Essai.Node( 'GEOM' , 'GEOM' , 'MakeCopy' )
18 print MakeCopy.SetAuthor( '' )
19 print MakeCopy.SetContainer( 'FactoryServer' )
20 print MakeCopy.SetComment( '' )
21 MakeCopy.Coords( 219 , 12 )
22 MakeTranslation = GraphGeom2Essai.Node( 'GEOM' , 'GEOM' , 'MakeTranslation' )
23 print MakeTranslation.SetAuthor( '' )
24 print MakeTranslation.SetContainer( 'FactoryServer' )
25 print MakeTranslation.SetComment( '' )
26 MakeTranslation.Coords( 221 , 209 )
27 MakeFuse = GraphGeom2Essai.Node( 'GEOM' , 'GEOM' , 'MakeFuse' )
28 print MakeFuse.SetAuthor( '' )
29 print MakeFuse.SetContainer( 'FactoryServer' )
30 print MakeFuse.SetComment( '' )
31 MakeFuse.Coords( 465 , 106 )
32
33 # Creation of intermediate Output variables and of links
34 MakeSpheresphere = MakeSphere.Port( 'shape' )
35 MakeCopyshape = GraphGeom2Essai.Link( MakeSpheresphere , MakeCopy.Port( 'shape1' ) )
36 MakeTranslationshape = GraphGeom2Essai.Link( MakeSpheresphere , MakeTranslation.Port( 'shape1' ) )
37 MakeCopycopy = MakeCopy.Port( 'shape' )
38 MakeFuseshape1 = GraphGeom2Essai.Link( MakeCopycopy , MakeFuse.Port( 'shape1' ) )
39 MakeTranslationtranslation = MakeTranslation.Port( 'shape' )
40 MakeFuseshape2 = GraphGeom2Essai.Link( MakeTranslationtranslation , MakeFuse.Port( 'shape2' ) )
41
42 # Creation of Input datas
43 MakeSpherex1 = MakeSphere.Input( 'x1' , 0)
44 MakeSpherey1 = MakeSphere.Input( 'y1' , 0)
45 MakeSpherez1 = MakeSphere.Input( 'z1' , 0)
46 MakeSphereradius = MakeSphere.Input( 'radius' , 50)
47 MakeTranslationx1 = MakeTranslation.Input( 'x1' , 80)
48 MakeTranslationy1 = MakeTranslation.Input( 'y1' , 0)
49 MakeTranslationz1 = MakeTranslation.Input( 'z1' , 0)
50
51 # Missing Input datas
52
53 # Creation of Output variables
54 MakeFuseresult = MakeFuse.Port( 'shape' )