Back to index

salome-smesh  6.5.0
Functions | Variables
ex16_cyl2complementary Namespace Reference

Functions

def local

Variables

int gx = 0
int gy = 0
int gz = 0
int g_dx = 250
int g_dy = 200
int g_dz = 150
int g_rayonGrand = 70
int g_rayonPetit = 50
int g_trim = 1000
tuple p_boite = MakeBox(gx-g_dx, gy-g_dy, gz-g_dz, gx+g_dx, gy+g_dy, gz+g_dz)
tuple g_base = MakeVertex(gx-g_dx, gy, gz)
tuple g_dir = MakeVectorDXDYDZ(1, 0, 0)
tuple g_cyl = MakeCylinder(g_base, g_dir, g_rayonGrand, g_dx*2)
tuple b_boite = MakeCut(p_boite , g_cyl)
tuple p_base = MakeVertex(gx, gy, gz)
list p_tools = []
tuple p_piece = MakePartition([b_boite], p_tools, [], [], ShapeType["SOLID"])
tuple c_cyl = MakeCylinder(p_base, MakeVectorDXDYDZ(0, 0, 1), g_rayonPetit, g_dz)
tuple d_element = SubShapeAllSorted(p_piece, ShapeType["SOLID"])
tuple piece = RemoveExtraEdges(MakeCompound(d_element))
tuple piece_id = addToStudy(piece, "ex16_cyl2complementary")
tuple hexa = smesh.Mesh(piece, "ex16_cyl2complementary:hexa")
tuple algo = hexa.Segment()

Function Documentation

def ex16_cyl2complementary.local (   x,
  y,
  z,
  d 
)

Definition at line 130 of file ex16_cyl2complementary.py.

00130 
00131 def local(x, y, z, d):
00132     edge = GetEdgeNearPoint(piece, MakeVertex(x, y, z))
00133     algo = hexa.Segment(edge)
00134     algo.NumberOfSegments(d)
00135     algo.Propagation()
00136 
00137 local(gx     , gy+g_dy, gz+g_dz, 7)
00138 local(gx+g_dx, gy+g_dy, gz     , 21)
00139 local(gx+g_dx, gy-g_dy, gz     , 21)
00140 
00141 # Mesh calculus
00142 # -------------
00143 
00144 hexa.Compute()

Variable Documentation

tuple ex16_cyl2complementary.algo = hexa.Segment()

Definition at line 120 of file ex16_cyl2complementary.py.

Definition at line 68 of file ex16_cyl2complementary.py.

tuple ex16_cyl2complementary.c_cyl = MakeCylinder(p_base, MakeVectorDXDYDZ(0, 0, 1), g_rayonPetit, g_dz)

Definition at line 89 of file ex16_cyl2complementary.py.

tuple ex16_cyl2complementary.d_element = SubShapeAllSorted(p_piece, ShapeType["SOLID"])

Definition at line 94 of file ex16_cyl2complementary.py.

tuple ex16_cyl2complementary.g_base = MakeVertex(gx-g_dx, gy, gz)

Definition at line 61 of file ex16_cyl2complementary.py.

Definition at line 63 of file ex16_cyl2complementary.py.

tuple ex16_cyl2complementary.g_dir = MakeVectorDXDYDZ(1, 0, 0)

Definition at line 62 of file ex16_cyl2complementary.py.

Definition at line 44 of file ex16_cyl2complementary.py.

Definition at line 45 of file ex16_cyl2complementary.py.

Definition at line 46 of file ex16_cyl2complementary.py.

Definition at line 48 of file ex16_cyl2complementary.py.

Definition at line 49 of file ex16_cyl2complementary.py.

Definition at line 51 of file ex16_cyl2complementary.py.

Definition at line 40 of file ex16_cyl2complementary.py.

Definition at line 41 of file ex16_cyl2complementary.py.

Definition at line 42 of file ex16_cyl2complementary.py.

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

Definition at line 118 of file ex16_cyl2complementary.py.

tuple ex16_cyl2complementary.p_base = MakeVertex(gx, gy, gz)

Definition at line 73 of file ex16_cyl2complementary.py.

Definition at line 56 of file ex16_cyl2complementary.py.

tuple ex16_cyl2complementary.p_piece = MakePartition([b_boite], p_tools, [], [], ShapeType["SOLID"])

Definition at line 84 of file ex16_cyl2complementary.py.

Definition at line 75 of file ex16_cyl2complementary.py.

tuple ex16_cyl2complementary.piece = RemoveExtraEdges(MakeCompound(d_element))

Definition at line 102 of file ex16_cyl2complementary.py.

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

Definition at line 108 of file ex16_cyl2complementary.py.