Back to index

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

Go to the source code of this file.

Namespaces

namespace  ex08_hole2build

Variables

int ex08_hole2build.ox = 0
int ex08_hole2build.oy = 0
int ex08_hole2build.oz = 0
int ex08_hole2build.longueur = 200
int ex08_hole2build.largeur = 100
int ex08_hole2build.hauteur = 80
int ex08_hole2build.cylindre = 50
int ex08_hole2build.rayon = 20
tuple ex08_hole2build.piecePoint1 = MakeVertex(ox , oy, oz)
tuple ex08_hole2build.piecePoint2 = MakeVertex(ox+longueur, oy, oz)
tuple ex08_hole2build.piecePoint3 = MakeVertex(ox+longueur, oy, oz+largeur)
tuple ex08_hole2build.piecePoint4 = MakeVertex(ox , oy, oz+largeur)
int ex08_hole2build.cz = 2
tuple ex08_hole2build.cylPoint1 = MakeVertex(ox+cylindre , oy, cz-rayon)
tuple ex08_hole2build.cylPoint2 = MakeVertex(ox+longueur-cylindre, oy, cz-rayon)
tuple ex08_hole2build.cylPoint3 = MakeVertex(ox+longueur-cylindre, oy, cz+rayon)
tuple ex08_hole2build.cylPoint4 = MakeVertex(ox+cylindre , oy, cz+rayon)
tuple ex08_hole2build.pieceEdge1 = MakeEdge(piecePoint1, piecePoint4)
tuple ex08_hole2build.pieceEdge2 = MakeEdge(piecePoint1, cylPoint1)
tuple ex08_hole2build.pieceEdge3 = MakeEdge(piecePoint4, cylPoint4)
tuple ex08_hole2build.pieceEdge4 = MakeEdge(piecePoint2, piecePoint3)
tuple ex08_hole2build.pieceEdge5 = MakeEdge(piecePoint2, cylPoint2)
tuple ex08_hole2build.pieceEdge6 = MakeEdge(piecePoint3, cylPoint3)
tuple ex08_hole2build.pieceEdge7 = MakeEdge(cylPoint1, cylPoint2)
tuple ex08_hole2build.pieceEdge8 = MakeEdge(cylPoint3, cylPoint4)
tuple ex08_hole2build.cylEdge1 = MakeArc(cylPoint1, MakeVertex(ox+cylindre-rayon , oy, cz), cylPoint4)
tuple ex08_hole2build.cylEdge2 = MakeArc(cylPoint1, MakeVertex(ox+cylindre+rayon , oy, cz), cylPoint4)
tuple ex08_hole2build.cylEdge3 = MakeArc(cylPoint2, MakeVertex(ox+longueur-cylindre-rayon, oy, cz), cylPoint3)
tuple ex08_hole2build.cylEdge4 = MakeArc(cylPoint2, MakeVertex(ox+longueur-cylindre+rayon, oy, cz), cylPoint3)
tuple ex08_hole2build.pieceFace1 = MakeQuad4Vertices(piecePoint1, piecePoint2, cylPoint2 , cylPoint1 )
tuple ex08_hole2build.pieceFace2 = MakeQuad(pieceEdge1 , pieceEdge2 , cylEdge1 , pieceEdge3)
tuple ex08_hole2build.pieceFace3 = MakeQuad4Vertices(piecePoint3, piecePoint4, cylPoint4 , cylPoint3 )
tuple ex08_hole2build.pieceFace4 = MakeQuad(pieceEdge4 , pieceEdge5 , cylEdge4 , pieceEdge6)
tuple ex08_hole2build.pieceFace5 = MakeQuad(pieceEdge7 , cylEdge3 , pieceEdge8, cylEdge2 )
tuple ex08_hole2build.pieceVector = MakeVectorDXDYDZ(0, 1, 0)
tuple ex08_hole2build.pieceSolid1 = MakePrismVecH(pieceFace1, pieceVector, hauteur)
tuple ex08_hole2build.pieceSolid2 = MakePrismVecH(pieceFace2, pieceVector, hauteur)
tuple ex08_hole2build.pieceSolid3 = MakePrismVecH(pieceFace3, pieceVector, hauteur)
tuple ex08_hole2build.pieceSolid4 = MakePrismVecH(pieceFace4, pieceVector, hauteur)
tuple ex08_hole2build.pieceSolid5 = MakePrismVecH(pieceFace5, pieceVector, hauteur)
tuple ex08_hole2build.c_cpd = MakeCompound([pieceSolid1, pieceSolid2, pieceSolid3, pieceSolid4, pieceSolid5])
tuple ex08_hole2build.piece = MakeGlueFaces(c_cpd, 1.e-5)
tuple ex08_hole2build.piece_id = addToStudy(piece, "ex08_hole2build")
tuple ex08_hole2build.hexa = smesh.Mesh(piece, "ex08_hole2build:hexa")
tuple ex08_hole2build.algo = hexa.Segment()