Back to index

salome-smesh  6.5.0
Namespaces | Variables
ex14_cyl1holed.py File Reference

Go to the source code of this file.

Namespaces

namespace  ex14_cyl1holed

Variables

int ex14_cyl1holed.g_ox = 0
int ex14_cyl1holed.g_oy = 0
int ex14_cyl1holed.g_oz = 0
int ex14_cyl1holed.g_cyl_rayon = 1000
int ex14_cyl1holed.g_cyl_demiHauteur = 3000
int ex14_cyl1holed.g_trou_rayon = 5
int ex14_cyl1holed.g_trou_centre = 300
int ex14_cyl1holed.g_trim = 15000
tuple ex14_cyl1holed.c_point = MakeVertex(g_ox, g_oy, g_oz-g_cyl_demiHauteur)
tuple ex14_cyl1holed.c_dir = MakeVectorDXDYDZ(0, 0, 1)
int ex14_cyl1holed.c_hauteur = 2
tuple ex14_cyl1holed.c_cylindre = MakeCylinder(c_point, c_dir, g_cyl_rayon, c_hauteur)
 ex14_cyl1holed.t_hauteur = g_cyl_demiHauteur
tuple ex14_cyl1holed.t_point = MakeVertex(g_ox-g_trou_centre, g_oy, g_oz-t_hauteur)
tuple ex14_cyl1holed.t_trou = MakeCylinder(t_point, c_dir, g_trou_rayon, 2*t_hauteur)
tuple ex14_cyl1holed.t_piece = MakeCut(c_cylindre, t_trou)
list ex14_cyl1holed.h_outils = []
tuple ex14_cyl1holed.h_piece = MakePartition([t_piece], h_outils, [], [], ShapeType["SOLID"])
list ex14_cyl1holed.l_outils = []
int ex14_cyl1holed.l_i = 1
int ex14_cyl1holed.l_n = 12
 ex14_cyl1holed.l_hauteur = c_hauteur/l_n
tuple ex14_cyl1holed.piece = MakePartition([h_piece], l_outils, [], [], ShapeType["SOLID"])
tuple ex14_cyl1holed.piece_id = addToStudy(piece, "ex14_cyl1holed")
tuple ex14_cyl1holed.hexa = smesh.Mesh(piece, "ex14_cyl1holed:hexa")
tuple ex14_cyl1holed.algo = hexa.Segment()
int ex14_cyl1holed.m_i = 0
int ex14_cyl1holed.m_n = 12
 ex14_cyl1holed.m_h = c_hauteur/m_n
list ex14_cyl1holed.m_d = [4, 6, 8, 10, 10, 9, 8, 7, 6, 5, 4, 3]
 ex14_cyl1holed.m_x = g_ox+g_cyl_rayon
 ex14_cyl1holed.m_y = g_oy
int ex14_cyl1holed.m_z = 2
tuple ex14_cyl1holed.m_p = MakeVertex(m_x, m_y, m_z + m_i*m_h)
tuple ex14_cyl1holed.m_e = GetEdgeNearPoint(piece, m_p)
tuple ex14_cyl1holed.m_a = hexa.Segment(m_e)