Back to index

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

Go to the source code of this file.

Namespaces

namespace  ex18_dome2

Variables

int ex18_dome2.g_ox = 0
int ex18_dome2.g_oy = 0
int ex18_dome2.g_oz = 0
int ex18_dome2.g_cyl_rayon = 1000
int ex18_dome2.g_cyl_demiHauteur = 3000
int ex18_dome2.g_trou_rayon = 5
int ex18_dome2.g_trou_centre = 300
int ex18_dome2.g_sphere_rayon = 3500
int ex18_dome2.g_trim = 15000
tuple ex18_dome2.c_point = MakeVertex(g_ox, g_oy, g_oz-g_cyl_demiHauteur)
tuple ex18_dome2.c_dir = MakeVectorDXDYDZ(0, 0, 1)
int ex18_dome2.c_hauteur = 2
tuple ex18_dome2.c_cylindre = MakeCylinder(c_point, c_dir, g_cyl_rayon, c_hauteur)
tuple ex18_dome2.s_hauteur = math.sqrt(g_sphere_rayon*g_sphere_rayon - g_cyl_rayon*g_cyl_rayon)
tuple ex18_dome2.s_sphere = MakeSphere(g_ox, g_oy, g_oz-s_hauteur, g_sphere_rayon)
list ex18_dome2.c_outils = []
tuple ex18_dome2.c_cpd = MakePartition([s_sphere], c_outils, [], [], ShapeType["SOLID"])
tuple ex18_dome2.c_plan = MakePlane(MakeVertex(g_ox, g_oy, g_oz), MakeVectorDXDYDZ(0, 0, 1), g_trim)
tuple ex18_dome2.c_calotte_bas = MakeMirrorByPlane(c_calotte_haut, c_plan)
tuple ex18_dome2.f_piece1 = MakeFuse(c_cylindre, c_calotte_haut)
tuple ex18_dome2.f_piece = MakeFuse(f_piece1, c_calotte_bas)
 ex18_dome2.t_hauteur = g_sphere_rayon
tuple ex18_dome2.t_point = MakeVertex(g_ox-g_trou_centre, g_oy, g_oz-t_hauteur)
tuple ex18_dome2.t_trou = MakeCylinder(t_point, c_dir, g_trou_rayon, 2*t_hauteur)
tuple ex18_dome2.t_piece = MakeCut(f_piece, t_trou)
list ex18_dome2.h_outils = []
tuple ex18_dome2.h_piece = MakePartition([t_piece], h_outils, [], [], ShapeType["SOLID"])
tuple ex18_dome2.piece = RemoveExtraEdges(h_piece)
tuple ex18_dome2.piece_id = addToStudy(piece, "ex18_dome2")
tuple ex18_dome2.hexa = smesh.Mesh(piece, "ex18_dome2:hexa")
tuple ex18_dome2.algo = hexa.Segment()