Back to index

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

Go to the source code of this file.

Namespaces

namespace  ex09_grid4build

Variables

int ex09_grid4build.ox = 0
int ex09_grid4build.oy = 0
int ex09_grid4build.oz = 0
int ex09_grid4build.arete = 50
int ex09_grid4build.hauteur = 100
int ex09_grid4build.rayon = 10
int ex09_grid4build.demi = 2
tuple ex09_grid4build.r3 = demi*math.sqrt(3)
tuple ex09_grid4build.piecePoint111 = MakeVertex(ox+rayon , oy, oz)
tuple ex09_grid4build.piecePoint211 = MakeVertex(ox+arete-rayon, oy, oz)
tuple ex09_grid4build.piecePoint112 = MakeVertex(ox , oy, oz+rayon)
tuple ex09_grid4build.piecePoint212 = MakeVertex(ox+arete , oy, oz+rayon)
tuple ex09_grid4build.piecePoint113 = MakeVertex(ox , oy, oz+arete-rayon)
tuple ex09_grid4build.piecePoint213 = MakeVertex(ox+arete , oy, oz+arete-rayon)
tuple ex09_grid4build.piecePoint114 = MakeVertex(ox+rayon , oy, oz+arete)
tuple ex09_grid4build.piecePoint214 = MakeVertex(ox+arete-rayon, oy, oz+arete)
tuple ex09_grid4build.pieceCenter1 = MakeVertex(ox , oy, oz)
tuple ex09_grid4build.pieceCenter2 = MakeVertex(ox+arete , oy, oz)
tuple ex09_grid4build.pieceCenter3 = MakeVertex(ox , oy, oz+arete)
tuple ex09_grid4build.pieceCenter4 = MakeVertex(ox+arete , oy, oz+arete)
tuple ex09_grid4build.piecePass1 = MakeVertex(ox+demi , oy, oz+r3)
tuple ex09_grid4build.piecePass2 = MakeVertex(ox+arete-demi , oy, oz+r3)
tuple ex09_grid4build.piecePass3 = MakeVertex(ox+arete-demi , oy, oz+arete-r3)
tuple ex09_grid4build.piecePass4 = MakeVertex(ox+demi , oy, oz+arete-r3)
tuple ex09_grid4build.pieceEdgeSquare1 = MakeEdge(piecePoint111, piecePoint211)
tuple ex09_grid4build.pieceEdgeSquare2 = MakeEdge(piecePoint114, piecePoint214)
tuple ex09_grid4build.pieceEdgeSquare3 = MakeEdge(piecePoint112, piecePoint113)
tuple ex09_grid4build.pieceEdgeSquare4 = MakeEdge(piecePoint212, piecePoint213)
tuple ex09_grid4build.pieceEdgeDiagonal1 = MakeEdge(piecePoint111, piecePoint213)
tuple ex09_grid4build.pieceEdgeDiagonal2 = MakeEdge(piecePoint112, piecePoint214)
tuple ex09_grid4build.pieceEdgeArc1 = MakeArc(piecePoint111, piecePass1, piecePoint112)
tuple ex09_grid4build.pieceEdgeArc2 = MakeArc(piecePoint211, piecePass2, piecePoint212)
tuple ex09_grid4build.pieceEdgeArc3 = MakeArc(piecePoint213, piecePass3, piecePoint214)
tuple ex09_grid4build.pieceEdgeArc4 = MakeArc(piecePoint113, piecePass4, piecePoint114)
tuple ex09_grid4build.pieceFace1 = MakeQuad(pieceEdgeSquare1, pieceEdgeArc2, pieceEdgeSquare4, pieceEdgeDiagonal1)
tuple ex09_grid4build.pieceFace2 = MakeQuad(pieceEdgeSquare2, pieceEdgeArc4, pieceEdgeSquare3, pieceEdgeDiagonal2)
tuple ex09_grid4build.pieceFace3 = MakeQuad(pieceEdgeArc1, pieceEdgeDiagonal1, pieceEdgeArc3, pieceEdgeDiagonal2)
tuple ex09_grid4build.pieceVector = MakeVectorDXDYDZ(0, 1, 0)
tuple ex09_grid4build.pieceSolid1 = MakePrismVecH(pieceFace1, pieceVector, hauteur)
tuple ex09_grid4build.pieceSolid2 = MakePrismVecH(pieceFace2, pieceVector, hauteur)
tuple ex09_grid4build.pieceSolid3 = MakePrismVecH(pieceFace3, pieceVector, hauteur)
tuple ex09_grid4build.c_cpd = MakeCompound([pieceSolid1, pieceSolid2, pieceSolid3])
tuple ex09_grid4build.piece = MakeGlueFaces(c_cpd, 1.e-5)
tuple ex09_grid4build.piece_id = addToStudy(piece, "ex09_grid4build")
tuple ex09_grid4build.hexa = smesh.Mesh(piece, "ex09_grid4build:hexa")
tuple ex09_grid4build.algo = hexa.Segment()