1 # GEOM GEOM_SWIG : binding of C++ omplementaion with Python
3 # Copyright (C) 2003 CEA/DEN, EDF R&D
7 # File : GEOM_Partition3.py
10 #%Make geometry (like CEA script (A2)) using Partition algorithm%
11 # import callovo_01_GEOM
12 # reload(callovo_01_GEOM)
18 vecx = geompy.MakeVectorDXDYDZ(1.,0.,0.)
26 colis = geompy.MakeCylinder(
27 geompy.MakeVertex(colis_xmin,0.,0.),
30 colis_xmax-colis_xmin)
40 bo = geompy.MakeCylinder(
41 geompy.MakeVertex(bo_xmin,0.,0.),
51 alvRup_xmax = colis_xmax
54 alvRup = geompy.MakeCylinder(
55 geompy.MakeVertex(alvRup_xmin,0.,0.),
58 alvRup_xmax-alvRup_xmin)
64 bouchon_xmin = colis_xmax
66 bouchon_radius = alvRup_radius
68 bouchon = geompy.MakeCylinder(
69 geompy.MakeVertex(bouchon_xmin,0.,0.),
72 bouchon_xmax-bouchon_xmin)
74 #GOList.append(bouchon)
76 # -- endommagement alveole
82 alvEnd = geompy.MakeCylinder(
83 geompy.MakeVertex(alvEnd_xmin,0.,0.),
86 alvEnd_xmax-alvEnd_xmin)
92 galerie_xmin = bouchon_xmax
96 galerie = geompy.MakeCylinder(
97 geompy.MakeVertex(galerie_xmin,0.,0.),
100 galerie_xmax-galerie_xmin)
102 GOList.append(galerie)
107 galRup_xmax = galerie_xmax
110 galRup = geompy.MakeCylinder(
111 geompy.MakeVertex(galRup_xmin,0.,0.),
114 galRup_xmax-galRup_xmin)
116 GOList.append(galRup)
120 galEnd_xmin = alvEnd_xmax
121 galEnd_xmax = galerie_xmax
124 galEnd = geompy.MakeCylinder(
125 geompy.MakeVertex(galEnd_xmin,0.,0.),
128 galEnd_xmax-galEnd_xmin)
130 GOList.append(galEnd)
135 box = geompy.MakeBox(0., 0., 0., galerie_xmax, box_y, box_y)
136 box = geompy.MakeTranslation(box, 0.0, -box_y/2, -box_y/2)
142 callovo = geompy.MakePartition(GOList, [], [], [bouchon])
143 geompy.addToStudy(callovo, "callovo 2")