Back to index

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

Go to the source code of this file.

Namespaces

namespace  ex05_hole1build

Variables

int ex05_hole1build.ox = 0
int ex05_hole1build.oy = 0
int ex05_hole1build.oz = 0
int ex05_hole1build.longueur = 100
int ex05_hole1build.largeur = 80
int ex05_hole1build.hauteur = 50
int ex05_hole1build.rayon = 10
tuple ex05_hole1build.basePoint111 = MakeVertex(ox , oy, oz)
tuple ex05_hole1build.basePoint211 = MakeVertex(ox+longueur, oy, oz)
tuple ex05_hole1build.basePoint112 = MakeVertex(ox , oy, oz+largeur)
tuple ex05_hole1build.basePoint212 = MakeVertex(ox+longueur, oy, oz+largeur)
int ex05_hole1build.cx = 2
 ex05_hole1build.cy = oy
int ex05_hole1build.cz = 2
 ex05_hole1build.ll = longueur/largeur
tuple ex05_hole1build.dx = rayon/math.sqrt(1+ll)
tuple ex05_hole1build.dz = rayon/math.sqrt(1+1/ll)
tuple ex05_hole1build.circlePoint1 = MakeVertex(cx-dx, cy, cz-dz)
tuple ex05_hole1build.circlePoint2 = MakeVertex(cx+dx, cy, cz-dz)
tuple ex05_hole1build.circlePoint3 = MakeVertex(cx+dx, cy, cz+dz)
tuple ex05_hole1build.circlePoint4 = MakeVertex(cx-dx, cy, cz+dz)
tuple ex05_hole1build.squareEdge1 = MakeEdge(basePoint111, basePoint211)
tuple ex05_hole1build.squareEdge2 = MakeEdge(basePoint211, basePoint212)
tuple ex05_hole1build.squareEdge3 = MakeEdge(basePoint212, basePoint112)
tuple ex05_hole1build.squareEdge4 = MakeEdge(basePoint112, basePoint111)
tuple ex05_hole1build.diagEdge1 = MakeEdge(basePoint111, circlePoint1)
tuple ex05_hole1build.diagEdge2 = MakeEdge(basePoint211, circlePoint2)
tuple ex05_hole1build.diagEdge3 = MakeEdge(basePoint212, circlePoint3)
tuple ex05_hole1build.diagEdge4 = MakeEdge(basePoint112, circlePoint4)
tuple ex05_hole1build.arcEdge1 = MakeArc(circlePoint1, MakeVertex(cx , cy, cz-rayon), circlePoint2)
tuple ex05_hole1build.arcEdge2 = MakeArc(circlePoint2, MakeVertex(cx+rayon, cy, cz ), circlePoint3)
tuple ex05_hole1build.arcEdge3 = MakeArc(circlePoint3, MakeVertex(cx , cy, cz+rayon), circlePoint4)
tuple ex05_hole1build.arcEdge4 = MakeArc(circlePoint4, MakeVertex(cx-rayon, cy, cz ), circlePoint1)
tuple ex05_hole1build.baseFace1 = MakeQuad(squareEdge1, diagEdge2, arcEdge1, diagEdge1)
tuple ex05_hole1build.baseFace2 = MakeQuad(squareEdge2, diagEdge3, arcEdge2, diagEdge2)
tuple ex05_hole1build.baseFace3 = MakeQuad(squareEdge3, diagEdge4, arcEdge3, diagEdge3)
tuple ex05_hole1build.baseFace4 = MakeQuad(squareEdge4, diagEdge1, arcEdge4, diagEdge4)
tuple ex05_hole1build.baseVector = MakeVectorDXDYDZ(0, 1, 0)
tuple ex05_hole1build.baseSolid1 = MakePrismVecH(baseFace1, baseVector, hauteur)
tuple ex05_hole1build.baseSolid2 = MakePrismVecH(baseFace2, baseVector, hauteur)
tuple ex05_hole1build.baseSolid3 = MakePrismVecH(baseFace3, baseVector, hauteur)
tuple ex05_hole1build.baseSolid4 = MakePrismVecH(baseFace4, baseVector, hauteur)
list ex05_hole1build.c_l = []
tuple ex05_hole1build.c_cpd = MakeCompound(c_l)
tuple ex05_hole1build.piece = MakeGlueFaces(c_cpd, 1.e-5)
tuple ex05_hole1build.piece_id = addToStudy(piece, "ex05_hole1build")
tuple ex05_hole1build.hexa = smesh.Mesh(piece, "ex05_hole1build:hexa")
tuple ex05_hole1build.algo = hexa.Segment()