Back to index

salome-geom  6.5.0
Namespaces | Functions | Variables
GEOM_cyl2complementary.py File Reference

Go to the source code of this file.

Namespaces

namespace  GEOM_cyl2complementary

Functions

def GEOM_cyl2complementary.addToStudy

Variables

tuple GEOM_cyl2complementary.geomgui = salome.ImportComponentGUI("GEOM")
int GEOM_cyl2complementary.gx = 0
int GEOM_cyl2complementary.gy = 0
int GEOM_cyl2complementary.gz = 0
int GEOM_cyl2complementary.g_dx = 250
int GEOM_cyl2complementary.g_dy = 200
int GEOM_cyl2complementary.g_dz = 150
int GEOM_cyl2complementary.g_rayonGrand = 70
int GEOM_cyl2complementary.g_rayonPetit = 50
tuple GEOM_cyl2complementary.p_boite = geompy.MakeBox(gx-g_dx, gy-g_dy, gz-g_dz, gx+g_dx, gy+g_dy, gz+g_dz)
tuple GEOM_cyl2complementary.g_base = geompy.MakeVertex(gx-g_dx, gy, gz)
tuple GEOM_cyl2complementary.g_dir = geompy.MakeVectorDXDYDZ(1, 0, 0)
tuple GEOM_cyl2complementary.g_cyl = geompy.MakeCylinder(g_base, g_dir, g_rayonGrand, g_dx*2)
tuple GEOM_cyl2complementary.c_base = geompy.MakeVertex(gx, gy, gz)
tuple GEOM_cyl2complementary.c_dir = geompy.MakeVectorDXDYDZ(0, 0, 1)
tuple GEOM_cyl2complementary.c_cyl = geompy.MakeCylinder(c_base, c_dir, g_rayonPetit, g_dz)
tuple GEOM_cyl2complementary.t_boite1 = geompy.MakeBoolean(p_boite , g_cyl, 2)
tuple GEOM_cyl2complementary.t_boite = geompy.MakeBoolean(t_boite1, c_cyl, 2)
list GEOM_cyl2complementary.p_tools = []
tuple GEOM_cyl2complementary.p_element = geompy.MakePartition([t_boite], p_tools, [], [], 4, 0, [], 0)
tuple GEOM_cyl2complementary.idpiece = addToStudy(p_element, "BoxHoled2Cylinders")