Back to index

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

Go to the source code of this file.

Namespaces

namespace  ex07_hole1partition

Variables

int ex07_hole1partition.g_x = 0
int ex07_hole1partition.g_y = 0
int ex07_hole1partition.g_z = 0
float ex07_hole1partition.g_longueur = 50.0
float ex07_hole1partition.g_largeur = 40.0
float ex07_hole1partition.g_hauteur = 25.0
int ex07_hole1partition.g_rayon = 10
int ex07_hole1partition.g_trim = 1000
tuple ex07_hole1partition.b_boite = MakeBox(g_x-g_longueur, g_y-g_hauteur, g_z-g_largeur, g_x+g_longueur, g_y+g_hauteur, g_z+g_largeur)
tuple ex07_hole1partition.c_axe = MakeVectorDXDYDZ(0, 1, 0)
tuple ex07_hole1partition.c_cyl = MakeCylinder(MakeVertex(g_x, g_y-g_hauteur, g_z), c_axe, g_rayon, g_hauteur*2)
tuple ex07_hole1partition.c_piece = MakeCut(b_boite, c_cyl)
tuple ex07_hole1partition.p_centre = MakeVertex(g_x, g_y, g_z)
list ex07_hole1partition.p_tools = []
tuple ex07_hole1partition.p_part = MakePartition([c_piece], p_tools, [], [], ShapeType["SOLID"])
tuple ex07_hole1partition.p_blocs = RemoveExtraEdges(p_part, doUnionFaces=True)
tuple ex07_hole1partition.piece = MakeGlueFaces(p_blocs, 1.e-5)
tuple ex07_hole1partition.piece_id = addToStudy(piece, "ex07_hole1partition")
tuple ex07_hole1partition.hexa = smesh.Mesh(piece, "ex07_hole1partition:hexa")
tuple ex07_hole1partition.algo = hexa.Segment()