Back to index

salome-geom  6.5.0
Functions | Variables
GEOM_cyl2complementary Namespace Reference

Functions

def addToStudy

Variables

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

Function Documentation

def GEOM_cyl2complementary.addToStudy (   shape,
  name 
)

Definition at line 38 of file GEOM_cyl2complementary.py.

00038 
00039 def addToStudy(shape, name):
00040     i = geompy.addToStudy(shape, name)
00041     salome.sg.updateObjBrowser(0)
00042     if not isinstance(geomgui, type(salome_ComponentGUI)):
00043         geomgui.createAndDisplayGO(i)
00044     return i
00045 
00046 # Piece
00047 # -----
00048 
00049 # Creer la geometrie en bloc hexahedrique d'un parallelepipede troue d'une piece en forme de T composee de 2 cylindres de diametre different dont les axes se coupent orthogonalement,
00050 # puis mailler en hexahedrique.


Variable Documentation

tuple GEOM_cyl2complementary.c_base = geompy.MakeVertex(gx, gy, gz)

Definition at line 80 of file GEOM_cyl2complementary.py.

tuple GEOM_cyl2complementary.c_cyl = geompy.MakeCylinder(c_base, c_dir, g_rayonPetit, g_dz)

Definition at line 82 of file GEOM_cyl2complementary.py.

tuple GEOM_cyl2complementary.c_dir = geompy.MakeVectorDXDYDZ(0, 0, 1)

Definition at line 81 of file GEOM_cyl2complementary.py.

tuple GEOM_cyl2complementary.g_base = geompy.MakeVertex(gx-g_dx, gy, gz)

Definition at line 73 of file GEOM_cyl2complementary.py.

tuple GEOM_cyl2complementary.g_cyl = geompy.MakeCylinder(g_base, g_dir, g_rayonGrand, g_dx*2)

Definition at line 75 of file GEOM_cyl2complementary.py.

tuple GEOM_cyl2complementary.g_dir = geompy.MakeVectorDXDYDZ(1, 0, 0)

Definition at line 74 of file GEOM_cyl2complementary.py.

Definition at line 55 of file GEOM_cyl2complementary.py.

Definition at line 56 of file GEOM_cyl2complementary.py.

Definition at line 57 of file GEOM_cyl2complementary.py.

Definition at line 59 of file GEOM_cyl2complementary.py.

Definition at line 60 of file GEOM_cyl2complementary.py.

tuple GEOM_cyl2complementary.geomgui = salome.ImportComponentGUI("GEOM")

Definition at line 36 of file GEOM_cyl2complementary.py.

Definition at line 51 of file GEOM_cyl2complementary.py.

Definition at line 52 of file GEOM_cyl2complementary.py.

Definition at line 53 of file GEOM_cyl2complementary.py.

tuple GEOM_cyl2complementary.idpiece = addToStudy(p_element, "BoxHoled2Cylinders")

Definition at line 111 of file GEOM_cyl2complementary.py.

Definition at line 68 of file GEOM_cyl2complementary.py.

tuple GEOM_cyl2complementary.p_element = geompy.MakePartition([t_boite], p_tools, [], [], 4, 0, [], 0)

Definition at line 103 of file GEOM_cyl2complementary.py.

Definition at line 93 of file GEOM_cyl2complementary.py.

tuple GEOM_cyl2complementary.t_boite = geompy.MakeBoolean(t_boite1, c_cyl, 2)

Definition at line 88 of file GEOM_cyl2complementary.py.

tuple GEOM_cyl2complementary.t_boite1 = geompy.MakeBoolean(p_boite , g_cyl, 2)

Definition at line 87 of file GEOM_cyl2complementary.py.