Package ex21_lamp


Variables

string name = "ex21_lamp"
int cote = 60
int section = 20
int size = 200
int radius_1 = 80
int radius_2 = 40
int height = 100
tuple box = MakeBox(-cote, -cote, -cote, +cote, +cote, +cote)
tuple pt1 = MakeVertex(0, 0, cote/3)
tuple di1 = MakeVectorDXDYDZ(0, 0, 1)
tuple cyl = MakeCylinder(pt1, di1, section, size)
tuple pt2 = MakeVertex(0, 0, size)
tuple cone = MakeCone(pt2, di1, radius_1, radius_2, height)
tuple box_cyl = MakeFuse(box, cyl)
tuple piece = MakeFuse(box_cyl, cone)
tuple group = CreateGroup(piece, ShapeType["FACE"])
string group_name = "_grp"
tuple faces = SubShapeAllIDs(piece, ShapeType["FACE"])
tuple tetra = smesh.Mesh(piece, name)
tuple algo1d = tetra.Segment()
tuple algo2d = tetra.Triangle()
tuple algo3d = tetra.Tetrahedron(smesh.NETGEN)


Variable Documentation

string ex21_lamp.name = "ex21_lamp" [static]
 

int ex21_lamp.cote = 60 [static]
 

int ex21_lamp.section = 20 [static]
 

int ex21_lamp.size = 200 [static]
 

int ex21_lamp.radius_1 = 80 [static]
 

int ex21_lamp.radius_2 = 40 [static]
 

int ex21_lamp.height = 100 [static]
 

tuple ex21_lamp.box = MakeBox(-cote, -cote, -cote, +cote, +cote, +cote) [static]
 

tuple ex21_lamp.pt1 = MakeVertex(0, 0, cote/3) [static]
 

tuple ex21_lamp.di1 = MakeVectorDXDYDZ(0, 0, 1) [static]
 

tuple ex21_lamp.cyl = MakeCylinder(pt1, di1, section, size) [static]
 

tuple ex21_lamp.pt2 = MakeVertex(0, 0, size) [static]
 

tuple ex21_lamp.cone = MakeCone(pt2, di1, radius_1, radius_2, height) [static]
 

tuple ex21_lamp.box_cyl = MakeFuse(box, cyl) [static]
 

tuple ex21_lamp.piece = MakeFuse(box_cyl, cone) [static]
 

tuple ex21_lamp.group = CreateGroup(piece, ShapeType["FACE"]) [static]
 

string ex21_lamp.group_name = "_grp" [static]
 

tuple ex21_lamp.faces = SubShapeAllIDs(piece, ShapeType["FACE"]) [static]
 

tuple ex21_lamp.tetra = smesh.Mesh(piece, name) [static]
 

tuple ex21_lamp.algo1d = tetra.Segment() [static]
 

tuple ex21_lamp.algo2d = tetra.Triangle() [static]
 

tuple ex21_lamp.algo3d = tetra.Tetrahedron(smesh.NETGEN) [static]