Back to index

salome-smesh  6.5.0
Namespaces | Functions | Variables
ex06_hole1boolean.py File Reference

Go to the source code of this file.

Namespaces

namespace  ex06_hole1boolean

Functions

def ex06_hole1boolean.triangle

Variables

int ex06_hole1boolean.ox = 0
int ex06_hole1boolean.oy = 0
int ex06_hole1boolean.oz = 0
int ex06_hole1boolean.longueur1 = 30
int ex06_hole1boolean.longueur2 = 70
int ex06_hole1boolean.largeur1 = 30
int ex06_hole1boolean.largeur2 = 50
int ex06_hole1boolean.hauteur = 50
int ex06_hole1boolean.rayon = 10
tuple ex06_hole1boolean.basePoint111 = MakeVertex(ox-longueur1, oy, oz-largeur1)
tuple ex06_hole1boolean.basePoint211 = MakeVertex(ox+longueur2, oy, oz-largeur1)
tuple ex06_hole1boolean.basePoint112 = MakeVertex(ox-longueur1, oy, oz+largeur2)
tuple ex06_hole1boolean.basePoint212 = MakeVertex(ox+longueur2, oy, oz+largeur2)
tuple ex06_hole1boolean.holePoint = MakeVertex(ox, oy, oz)
tuple ex06_hole1boolean.baseFace1 = triangle(basePoint111, basePoint211, holePoint)
tuple ex06_hole1boolean.baseFace2 = triangle(basePoint211, basePoint212, holePoint)
tuple ex06_hole1boolean.baseFace3 = triangle(basePoint212, basePoint112, holePoint)
tuple ex06_hole1boolean.baseFace4 = triangle(basePoint112, basePoint111, holePoint)
tuple ex06_hole1boolean.baseVector = MakeVectorDXDYDZ(0, 1, 0)
tuple ex06_hole1boolean.baseSolid1 = MakePrismVecH(baseFace1, baseVector, hauteur)
tuple ex06_hole1boolean.baseSolid2 = MakePrismVecH(baseFace2, baseVector, hauteur)
tuple ex06_hole1boolean.baseSolid3 = MakePrismVecH(baseFace3, baseVector, hauteur)
tuple ex06_hole1boolean.baseSolid4 = MakePrismVecH(baseFace4, baseVector, hauteur)
tuple ex06_hole1boolean.holeSolid = MakeCylinder(holePoint, baseVector, rayon, hauteur)
tuple ex06_hole1boolean.baseHexa1 = MakeCut(baseSolid1, holeSolid)
tuple ex06_hole1boolean.baseHexa2 = MakeCut(baseSolid2, holeSolid)
tuple ex06_hole1boolean.baseHexa3 = MakeCut(baseSolid3, holeSolid)
tuple ex06_hole1boolean.baseHexa4 = MakeCut(baseSolid4, holeSolid)
list ex06_hole1boolean.c_l = []
tuple ex06_hole1boolean.c_cpd = MakeCompound(c_l)
tuple ex06_hole1boolean.c_glu = MakeGlueFaces(c_cpd, 1.e-5)
tuple ex06_hole1boolean.piece = RemoveExtraEdges(c_glu, doUnionFaces=True)
tuple ex06_hole1boolean.piece_id = addToStudy(piece, "ex06_hole1boolean")
tuple ex06_hole1boolean.hexa = smesh.Mesh(piece, "ex06_hole1boolean:hexa")
tuple ex06_hole1boolean.algo = hexa.Segment()
tuple ex06_hole1boolean.edge1 = GetEdgeNearPoint(piece, MakeVertex(ox, oy, oz-largeur1))
tuple ex06_hole1boolean.algo1 = hexa.Segment(edge1)
tuple ex06_hole1boolean.edge2 = GetEdgeNearPoint(piece, MakeVertex(ox-longueur1, oy, oz))
tuple ex06_hole1boolean.algo2 = hexa.Segment(edge2)
tuple ex06_hole1boolean.edge3 = GetEdgeNearPoint(piece, MakeVertex(ox, oy, oz+largeur2))
tuple ex06_hole1boolean.algo3 = hexa.Segment(edge3)
tuple ex06_hole1boolean.edge4 = GetEdgeNearPoint(piece, MakeVertex(ox+longueur2, oy, oz))
tuple ex06_hole1boolean.algo4 = hexa.Segment(edge4)