Back to index

salome-smesh  6.5.0
Variables
ex07_hole1partition Namespace Reference

Variables

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

Variable Documentation

tuple ex07_hole1partition.algo = hexa.Segment()

Definition at line 93 of file ex07_hole1partition.py.

Definition at line 53 of file ex07_hole1partition.py.

tuple ex07_hole1partition.c_axe = MakeVectorDXDYDZ(0, 1, 0)

Definition at line 58 of file ex07_hole1partition.py.

tuple ex07_hole1partition.c_cyl = MakeCylinder(MakeVertex(g_x, g_y-g_hauteur, g_z), c_axe, g_rayon, g_hauteur*2)

Definition at line 60 of file ex07_hole1partition.py.

Definition at line 62 of file ex07_hole1partition.py.

Definition at line 44 of file ex07_hole1partition.py.

Definition at line 43 of file ex07_hole1partition.py.

Definition at line 42 of file ex07_hole1partition.py.

Definition at line 46 of file ex07_hole1partition.py.

Definition at line 48 of file ex07_hole1partition.py.

Definition at line 38 of file ex07_hole1partition.py.

Definition at line 39 of file ex07_hole1partition.py.

Definition at line 40 of file ex07_hole1partition.py.

tuple ex07_hole1partition.hexa = smesh.Mesh(piece, "ex07_hole1partition:hexa")

Definition at line 91 of file ex07_hole1partition.py.

tuple ex07_hole1partition.p_blocs = RemoveExtraEdges(p_part, doUnionFaces=True)

Definition at line 75 of file ex07_hole1partition.py.

tuple ex07_hole1partition.p_centre = MakeVertex(g_x, g_y, g_z)

Definition at line 67 of file ex07_hole1partition.py.

tuple ex07_hole1partition.p_part = MakePartition([c_piece], p_tools, [], [], ShapeType["SOLID"])

Definition at line 73 of file ex07_hole1partition.py.

Definition at line 69 of file ex07_hole1partition.py.

tuple ex07_hole1partition.piece = MakeGlueFaces(p_blocs, 1.e-5)

Definition at line 76 of file ex07_hole1partition.py.

tuple ex07_hole1partition.piece_id = addToStudy(piece, "ex07_hole1partition")

Definition at line 81 of file ex07_hole1partition.py.