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() |
| def ex16_cyl2complementary.local | ( | x, | |
| y, | |||
| z, | |||
| d | |||
| ) |
Definition at line 129 of file ex16_cyl2complementary.py.
00130 : 00131 edge = GetEdgeNearPoint(piece, MakeVertex(x, y, z)) 00132 algo = hexa.Segment(edge) 00133 algo.NumberOfSegments(d) 00134 algo.Propagation() 00135 00136 local(gx , gy+g_dy, gz+g_dz, 7) 00137 local(gx+g_dx, gy+g_dy, gz , 21) 00138 local(gx+g_dx, gy-g_dy, gz , 21) 00139 00140 # Mesh calculus 00141 # ------------- 00142 00143 hexa.Compute()
| tuple ex16_cyl2complementary.algo = hexa.Segment() |
Definition at line 119 of file ex16_cyl2complementary.py.
| tuple ex16_cyl2complementary.b_boite = MakeCut(p_boite , g_cyl) |
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.
| tuple ex16_cyl2complementary.g_cyl = MakeCylinder(g_base, g_dir, g_rayonGrand, g_dx*2) |
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.
| int ex16_cyl2complementary.g_trim = 1000 |
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 117 of file ex16_cyl2complementary.py.
| tuple ex16_cyl2complementary.p_base = MakeVertex(gx, gy, gz) |
Definition at line 73 of file ex16_cyl2complementary.py.
| tuple ex16_cyl2complementary.p_boite = MakeBox(gx-g_dx, gy-g_dy, gz-g_dz, gx+g_dx, gy+g_dy, gz+g_dz) |
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.
| list ex16_cyl2complementary.p_tools = [] |
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 107 of file ex16_cyl2complementary.py.