Back to index

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

Go to the source code of this file.

Namespaces

namespace  ex03_cube2partition

Variables

int ex03_cube2partition.g_ox = 0
int ex03_cube2partition.g_oy = 0
int ex03_cube2partition.g_oz = 0
int ex03_cube2partition.g_arete = 10
int ex03_cube2partition.g_trim = 1000
int ex03_cube2partition.v_arete2 = 2
int ex03_cube2partition.v_arete3 = 3
tuple ex03_cube2partition.v_1 = MakeVertex(g_ox , g_oy , g_oz )
tuple ex03_cube2partition.v_2 = MakeVertex(g_ox+v_arete3, g_oy+g_arete , g_oz+v_arete3)
tuple ex03_cube2partition.v_3 = MakeVertex(g_ox+g_arete , g_oy+g_arete , g_oz+g_arete )
tuple ex03_cube2partition.v_4 = MakeVertex(g_ox+v_arete2, g_oy+v_arete2, g_oz+v_arete2)
tuple ex03_cube2partition.s_base = MakeBoxTwoPnt(v_1, v_2)
tuple ex03_cube2partition.s_haut = MakeBoxTwoPnt(v_3, v_4)
tuple ex03_cube2partition.p_dir1 = MakeVectorDXDYDZ(1, 0, 0)
tuple ex03_cube2partition.p_dir2 = MakeVectorDXDYDZ(0, 0, 1)
tuple ex03_cube2partition.p_dir3 = MakeVectorDXDYDZ(0, 1, 0)
list ex03_cube2partition.p_tools = []
tuple ex03_cube2partition.piece = MakePartition([s_base, s_haut], p_tools, [], [], ShapeType["SOLID"])
tuple ex03_cube2partition.piece_id = addToStudy(piece, "ex03_cube2partition")
tuple ex03_cube2partition.hexa = smesh.Mesh(piece, "ex03_cube2partition:hexa")
tuple ex03_cube2partition.algo = hexa.Segment()