Package ex16_cyl2complementary


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
 


Variable Documentation

int ex16_cyl2complementary.gx = 0 [static]
 

int ex16_cyl2complementary.gy = 0 [static]
 

int ex16_cyl2complementary.gz = 0 [static]
 

int ex16_cyl2complementary.g_dx = 250 [static]
 

int ex16_cyl2complementary.g_dy = 200 [static]
 

int ex16_cyl2complementary.g_dz = 150 [static]
 

int ex16_cyl2complementary.g_rayonGrand = 70 [static]
 

int ex16_cyl2complementary.g_rayonPetit = 50 [static]
 

int ex16_cyl2complementary.g_trim = 1000 [static]
 

tuple ex16_cyl2complementary.p_boite = MakeBox(gx-g_dx, gy-g_dy, gz-g_dz, gx+g_dx, gy+g_dy, gz+g_dz) [static]
 

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

tuple ex16_cyl2complementary.g_dir = MakeVectorDXDYDZ(1, 0, 0) [static]
 

tuple ex16_cyl2complementary.g_cyl = MakeCylinder(g_base, g_dir, g_rayonGrand, g_dx*2) [static]
 

tuple ex16_cyl2complementary.b_boite = MakeCut(p_boite , g_cyl) [static]
 

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

list ex16_cyl2complementary.p_tools = [] [static]
 

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

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

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

tuple ex16_cyl2complementary.piece = RemoveExtraEdges(MakeCompound(d_element)) [static]
 

tuple ex16_cyl2complementary.piece_id = addToStudy(piece, "ex16_cyl2complementary") [static]
 

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

tuple ex16_cyl2complementary.algo = hexa.Segment() [static]