Back to index

salome-smesh  6.5.0
Functions | Variables
ex06_hole1boolean Namespace Reference

Functions

def triangle

Variables

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

Function Documentation

def ex06_hole1boolean.triangle (   p1,
  p2,
  p3 
)

Definition at line 55 of file ex06_hole1boolean.py.

00055 
00056 def triangle(p1, p2, p3):
00057     l = []
00058     l.append(MakeEdge(p1, p2))
00059     l.append(MakeEdge(p2, p3))
00060     l.append(MakeEdge(p3, p1))
00061     w = MakeWire(l)
00062     return MakeFace(w, 1)
00063 
00064 # Points
00065 # ------

Here is the call graph for this function:


Variable Documentation

tuple ex06_hole1boolean.algo = hexa.Segment()

Definition at line 129 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.algo1 = hexa.Segment(edge1)

Definition at line 141 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.algo2 = hexa.Segment(edge2)

Definition at line 146 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.algo3 = hexa.Segment(edge3)

Definition at line 151 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.algo4 = hexa.Segment(edge4)

Definition at line 156 of file ex06_hole1boolean.py.

Definition at line 76 of file ex06_hole1boolean.py.

Definition at line 77 of file ex06_hole1boolean.py.

Definition at line 78 of file ex06_hole1boolean.py.

Definition at line 79 of file ex06_hole1boolean.py.

Definition at line 96 of file ex06_hole1boolean.py.

Definition at line 97 of file ex06_hole1boolean.py.

Definition at line 98 of file ex06_hole1boolean.py.

Definition at line 99 of file ex06_hole1boolean.py.

Definition at line 66 of file ex06_hole1boolean.py.

Definition at line 68 of file ex06_hole1boolean.py.

Definition at line 67 of file ex06_hole1boolean.py.

Definition at line 69 of file ex06_hole1boolean.py.

Definition at line 86 of file ex06_hole1boolean.py.

Definition at line 87 of file ex06_hole1boolean.py.

Definition at line 88 of file ex06_hole1boolean.py.

Definition at line 89 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.baseVector = MakeVectorDXDYDZ(0, 1, 0)

Definition at line 84 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.c_cpd = MakeCompound(c_l)

Definition at line 110 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.c_glu = MakeGlueFaces(c_cpd, 1.e-5)

Definition at line 111 of file ex06_hole1boolean.py.

Definition at line 104 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.edge1 = GetEdgeNearPoint(piece, MakeVertex(ox, oy, oz-largeur1))

Definition at line 140 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.edge2 = GetEdgeNearPoint(piece, MakeVertex(ox-longueur1, oy, oz))

Definition at line 145 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.edge3 = GetEdgeNearPoint(piece, MakeVertex(ox, oy, oz+largeur2))

Definition at line 150 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.edge4 = GetEdgeNearPoint(piece, MakeVertex(ox+longueur2, oy, oz))

Definition at line 155 of file ex06_hole1boolean.py.

Definition at line 48 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.hexa = smesh.Mesh(piece, "ex06_hole1boolean:hexa")

Definition at line 127 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.holePoint = MakeVertex(ox, oy, oz)

Definition at line 71 of file ex06_hole1boolean.py.

Definition at line 91 of file ex06_hole1boolean.py.

Definition at line 45 of file ex06_hole1boolean.py.

Definition at line 46 of file ex06_hole1boolean.py.

Definition at line 42 of file ex06_hole1boolean.py.

Definition at line 43 of file ex06_hole1boolean.py.

Definition at line 38 of file ex06_hole1boolean.py.

Definition at line 39 of file ex06_hole1boolean.py.

Definition at line 40 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.piece = RemoveExtraEdges(c_glu, doUnionFaces=True)

Definition at line 112 of file ex06_hole1boolean.py.

tuple ex06_hole1boolean.piece_id = addToStudy(piece, "ex06_hole1boolean")

Definition at line 117 of file ex06_hole1boolean.py.

Definition at line 50 of file ex06_hole1boolean.py.