Back to index

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

Go to the source code of this file.

Namespaces

namespace  ex21_lamp

Variables

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