Back to index

salome-smesh  6.5.0
Functions | Variables
SMESH_fixation Namespace Reference

Functions

def MakeFace

Variables

int longueurPlq = 686
 longueurPlq = 0.686 largeurPlq = 0.573 epaisseurPlq = 0.150
int largeurPlq = 573
int epaisseurPlq = 150
int hauteurFlanc = 380
int epaisseurFlanc = 112
int rayonConge = 150
int epaisseurFond = 162
int rayonTrou = 75
tuple posAxeTrou = hauteurFlanc-(180 + rayonTrou)
int marge = 10
int tol3d = 1
tuple p0 = geompy.MakeVertex(0., 0., 0.)
tuple vx = geompy.MakeVectorDXDYDZ(100., 0., 0.)
tuple vy = geompy.MakeVectorDXDYDZ(0., 100., 0.)
tuple vz = geompy.MakeVectorDXDYDZ(0., 0., 100.)
int he = 2
float re = 0.5
 sine = re/he
tuple cose = math.sqrt(1. - sine*sine)
tuple ve = geompy.MakeVectorDXDYDZ(sine, 0., cose)
tuple cyl0 = geompy.MakeCylinder(p0, ve, re, 2*he)
tuple cyl1 = geompy.MakeRotation(cyl0, ve, 0.5)
tuple cyle = geompy.MakeTranslation(cyl1, -marge*sine, 0., -marge*cose)
tuple pbe = geompy.MakeVertex(3*he, -2*re, 3*he)
tuple boxe = geompy.MakeBoxTwoPnt(p0, pbe)
tuple cylcoup = geompy.MakeBoolean(cyle, boxe, 2)
list aretes = []
tuple shape = geompy.MakeCopy(aretes[0])
tuple aShape = geompy.MakeTranslation(shape, 0., rayonConge + re, epaisseurPlq + 2*rayonConge)
int x0 = 0
 x0h = rayonConge
 x1 = rayonConge+epaisseurFlanc
int xc = 2
 x2 = longueurPlq-rayonConge-epaisseurFlanc
 x3h = longueurPlq-rayonConge
 x3 = longueurPlq
int y0 = 0
 y0h = rayonConge
 y1 = largeurPlq-epaisseurFond
 y1m = y1-marge
 y2 = largeurPlq
 y2p = largeurPlq+marge
int z0 = 0
 z1m = epaisseurPlq-marge
 z1 = epaisseurPlq
 z2 = epaisseurPlq+rayonConge
int z3 = 2
 z4 = epaisseurPlq+hauteurFlanc
 z4p = epaisseurPlq+hauteurFlanc+marge
 zc = epaisseurPlq+posAxeTrou
tuple zc2 = epaisseurPlq+(posAxeTrou - rayonTrou)
int zc3 = 2
tuple p11 = geompy.MakeVertex(x1, y1m, z1)
tuple p12 = geompy.MakeVertex(x1, y1m, z2)
tuple p13 = geompy.MakeVertex(x1, y1m, z3)
tuple p14 = geompy.MakeVertex(x1, y1m, z4)
tuple pc1 = geompy.MakeVertex(xc, y1m, z1)
tuple pc2 = geompy.MakeVertex(xc, y1m, zc2)
tuple pc3 = geompy.MakeVertex(xc, y1m, zc3)
tuple pcc = geompy.MakeVertex(xc, y1m, zc)
tuple pc4 = geompy.MakeVertex(xc, y1m, z4)
tuple p21 = geompy.MakeVertex(x2, y1m, z1)
tuple p22 = geompy.MakeVertex(x2, y1m, z2)
tuple p23 = geompy.MakeVertex(x2, y1m, z3)
tuple p24 = geompy.MakeVertex(x2, y1m, z4)
tuple pcf = geompy.MakeVertex(xc, y2p, zc)
tuple arc2 = geompy.MakeArc(p12,pc2,p22)
tuple arc3 = geompy.MakeArc(p13,pc3,p23)
tuple segz1 = geompy.MakeVector(p11,p21)
tuple segz41 = geompy.MakeVector(p14,pc4)
tuple segz42 = geompy.MakeVector(pc4,p24)
tuple segx11 = geompy.MakeVector(p11,p12)
tuple segx12 = geompy.MakeVector(p12,p13)
tuple segx13 = geompy.MakeVector(p13,p14)
tuple segxc2 = geompy.MakeVector(pc1,pc2)
tuple segxc3 = geompy.MakeVector(pc2,pc3)
tuple segxc4 = geompy.MakeVector(pcc,pc4)
tuple segx21 = geompy.MakeVector(p21,p22)
tuple segx22 = geompy.MakeVector(p22,p23)
tuple segx23 = geompy.MakeVector(p23,p24)
tuple segx1c1 = geompy.MakeVector(p13,pcc)
tuple segx1c2 = geompy.MakeVector(p14,pcc)
tuple segx2c1 = geompy.MakeVector(p23,pcc)
tuple segx2c2 = geompy.MakeVector(p24,pcc)
list facef = []
tuple vcccf = geompy.MakeVector(pcc, pcf)
 hcccf = y2p-y1m
list decf = []
tuple pc = geompy.MakeVertex(xc, 0., zc)
tuple py2 = geompy.MakeVertex(xc, y2, zc)
tuple axeCyl = geompy.MakeVector(pc, py2)
tuple cylFond = geompy.MakeCylinder(pc, vy, rayonTrou, 1.1*largeurPlq)
tuple cylFond2 = geompy.MakeRotation(cylFond, axeCyl, math.pi)
list fondec = []
tuple p_xcy2pz4p = geompy.MakeVertex(xc,y2p,z4p)
tuple p_x3y2pz4p = geompy.MakeVertex(x3,y2p,z4p)
tuple pxc = geompy.MakeVertex(xc,y0,z0)
tuple bcut1 = geompy.MakeBoxTwoPnt(p0, p_xcy2pz4p)
tuple bcut2 = geompy.MakeBoxTwoPnt(pxc, p_x3y2pz4p)
list fondec2 = []
tuple bcong1 = geompy.MakeBox(x0,y0,z1, x1,y1,z2)
tuple bcong2 = geompy.MakeBox(x0,y1,z1, x1,y2,z2)
tuple bcong3 = geompy.MakeBox(x2,y0,z1, x3,y1,z2)
tuple bcong4 = geompy.MakeBox(x2,y1,z1, x3,y2,z2)
tuple pcylx0 = geompy.MakeVertex(0., -marge, z2)
tuple pcylx3 = geompy.MakeVertex(longueurPlq, -marge, z2)
tuple pcyly0 = geompy.MakeVertex(-marge, 0., z2)
tuple cylcongx0 = geompy.MakeCylinder(pcylx0, vy, rayonConge, largeurPlq + 2*marge)
tuple cylcongx3 = geompy.MakeCylinder(pcylx3, vy, rayonConge, largeurPlq + 2*marge)
tuple cylcongy0 = geompy.MakeCylinder(pcyly0, vx, rayonConge, longueurPlq + 2*marge)
tuple pf1 = geompy.MakeVertex(0., y0h, z3)
tuple pf2 = geompy.MakeVertex(0., y1, z3)
tuple pf3 = geompy.MakeVertex(0., y1, z4)
tuple pf4 = geompy.MakeVertex(0., 0.5*(largeurPlq - epaisseurFond) , z4)
tuple vf1 = geompy.MakeEdge(pf1, pf2)
tuple vf2 = geompy.MakeEdge(pf2, pf3)
tuple vf3 = geompy.MakeEdge(pf3, pf4)
tuple faceFlanc = MakeFace([vf1,vf2,vf3,aShape])
tuple flanc1 = geompy.MakePrismVecH(faceFlanc, vx, epaisseurFlanc)
tuple flanc2 = geompy.MakeCopy(flanc1)
tuple boxfond2 = geompy.MakeBox(x0, y1, z0, x3, y2, z4p)
list blocs = []
tuple compbloc = geompy.MakeCompound(blocs)
tuple idcomp = geompy.addToStudy(compbloc, "compbloc")
tuple compshell = geompy.MakeGlueFaces(compbloc,tol3d)

Function Documentation

def SMESH_fixation.MakeFace (   lstEdges)
Creates a planar face from 4 edges

Definition at line 35 of file SMESH_fixation.py.

00035 
00036 def MakeFace(lstEdges) :
00037     """
00038     Creates a planar face from 4 edges
00039     """
00040     wire = geompy.MakeWire(lstEdges)
00041     face = geompy.MakeFace(wire, 1)
00042     return face
00043 
00044 # -----------------------------------------------------------------------------
00045 
00046 # ---- dimensions

Here is the caller graph for this function:


Variable Documentation

tuple SMESH_fixation.arc2 = geompy.MakeArc(p12,pc2,p22)

Definition at line 161 of file SMESH_fixation.py.

tuple SMESH_fixation.arc3 = geompy.MakeArc(p13,pc3,p23)

Definition at line 162 of file SMESH_fixation.py.

Definition at line 100 of file SMESH_fixation.py.

tuple SMESH_fixation.aShape = geompy.MakeTranslation(shape, 0., rayonConge + re, epaisseurPlq + 2*rayonConge)

Definition at line 104 of file SMESH_fixation.py.

tuple SMESH_fixation.axeCyl = geompy.MakeVector(pc, py2)

Definition at line 198 of file SMESH_fixation.py.

tuple SMESH_fixation.bcong1 = geompy.MakeBox(x0,y0,z1, x1,y1,z2)

Definition at line 225 of file SMESH_fixation.py.

tuple SMESH_fixation.bcong2 = geompy.MakeBox(x0,y1,z1, x1,y2,z2)

Definition at line 226 of file SMESH_fixation.py.

tuple SMESH_fixation.bcong3 = geompy.MakeBox(x2,y0,z1, x3,y1,z2)

Definition at line 227 of file SMESH_fixation.py.

tuple SMESH_fixation.bcong4 = geompy.MakeBox(x2,y1,z1, x3,y2,z2)

Definition at line 228 of file SMESH_fixation.py.

tuple SMESH_fixation.bcut1 = geompy.MakeBoxTwoPnt(p0, p_xcy2pz4p)

Definition at line 213 of file SMESH_fixation.py.

tuple SMESH_fixation.bcut2 = geompy.MakeBoxTwoPnt(pxc, p_x3y2pz4p)

Definition at line 214 of file SMESH_fixation.py.

Definition at line 265 of file SMESH_fixation.py.

tuple SMESH_fixation.boxe = geompy.MakeBoxTwoPnt(p0, pbe)

Definition at line 96 of file SMESH_fixation.py.

tuple SMESH_fixation.boxfond2 = geompy.MakeBox(x0, y1, z0, x3, y2, z4p)

Definition at line 263 of file SMESH_fixation.py.

tuple SMESH_fixation.compbloc = geompy.MakeCompound(blocs)

Definition at line 290 of file SMESH_fixation.py.

tuple SMESH_fixation.compshell = geompy.MakeGlueFaces(compbloc,tol3d)

Definition at line 295 of file SMESH_fixation.py.

tuple SMESH_fixation.cose = math.sqrt(1. - sine*sine)

Definition at line 88 of file SMESH_fixation.py.

tuple SMESH_fixation.cyl0 = geompy.MakeCylinder(p0, ve, re, 2*he)

Definition at line 91 of file SMESH_fixation.py.

tuple SMESH_fixation.cyl1 = geompy.MakeRotation(cyl0, ve, 0.5)

Definition at line 92 of file SMESH_fixation.py.

tuple SMESH_fixation.cylcongx0 = geompy.MakeCylinder(pcylx0, vy, rayonConge, largeurPlq + 2*marge)

Definition at line 234 of file SMESH_fixation.py.

tuple SMESH_fixation.cylcongx3 = geompy.MakeCylinder(pcylx3, vy, rayonConge, largeurPlq + 2*marge)

Definition at line 235 of file SMESH_fixation.py.

tuple SMESH_fixation.cylcongy0 = geompy.MakeCylinder(pcyly0, vx, rayonConge, longueurPlq + 2*marge)

Definition at line 236 of file SMESH_fixation.py.

tuple SMESH_fixation.cylcoup = geompy.MakeBoolean(cyle, boxe, 2)

Definition at line 98 of file SMESH_fixation.py.

tuple SMESH_fixation.cyle = geompy.MakeTranslation(cyl1, -marge*sine, 0., -marge*cose)

Definition at line 93 of file SMESH_fixation.py.

tuple SMESH_fixation.cylFond = geompy.MakeCylinder(pc, vy, rayonTrou, 1.1*largeurPlq)

Definition at line 200 of file SMESH_fixation.py.

tuple SMESH_fixation.cylFond2 = geompy.MakeRotation(cylFond, axeCyl, math.pi)

Definition at line 201 of file SMESH_fixation.py.

Definition at line 192 of file SMESH_fixation.py.

Definition at line 66 of file SMESH_fixation.py.

Definition at line 69 of file SMESH_fixation.py.

Definition at line 63 of file SMESH_fixation.py.

Definition at line 181 of file SMESH_fixation.py.

Definition at line 255 of file SMESH_fixation.py.

tuple SMESH_fixation.flanc1 = geompy.MakePrismVecH(faceFlanc, vx, epaisseurFlanc)

Definition at line 257 of file SMESH_fixation.py.

tuple SMESH_fixation.flanc2 = geompy.MakeCopy(flanc1)

Definition at line 258 of file SMESH_fixation.py.

Definition at line 203 of file SMESH_fixation.py.

Definition at line 216 of file SMESH_fixation.py.

Definition at line 65 of file SMESH_fixation.py.

Definition at line 191 of file SMESH_fixation.py.

Definition at line 85 of file SMESH_fixation.py.

tuple SMESH_fixation.idcomp = geompy.addToStudy(compbloc, "compbloc")

Definition at line 291 of file SMESH_fixation.py.

Definition at line 62 of file SMESH_fixation.py.

longueurPlq = 0.686 largeurPlq = 0.573 epaisseurPlq = 0.150

hauteurFlanc = 0.380 epaisseurFlanc = 0.112 rayonConge = 0.150 - epaisseurFlanc epaisseurFond = 0.162 rayonTrou = 0.075 posAxeTrou = hauteurFlanc -(0.180 + rayonTrou) marge = 0.01 tol3d = 1.e-5

Definition at line 61 of file SMESH_fixation.py.

Definition at line 72 of file SMESH_fixation.py.

tuple SMESH_fixation.p0 = geompy.MakeVertex(0., 0., 0.)

Definition at line 77 of file SMESH_fixation.py.

tuple SMESH_fixation.p11 = geompy.MakeVertex(x1, y1m, z1)

Definition at line 146 of file SMESH_fixation.py.

tuple SMESH_fixation.p12 = geompy.MakeVertex(x1, y1m, z2)

Definition at line 147 of file SMESH_fixation.py.

tuple SMESH_fixation.p13 = geompy.MakeVertex(x1, y1m, z3)

Definition at line 148 of file SMESH_fixation.py.

tuple SMESH_fixation.p14 = geompy.MakeVertex(x1, y1m, z4)

Definition at line 149 of file SMESH_fixation.py.

tuple SMESH_fixation.p21 = geompy.MakeVertex(x2, y1m, z1)

Definition at line 155 of file SMESH_fixation.py.

tuple SMESH_fixation.p22 = geompy.MakeVertex(x2, y1m, z2)

Definition at line 156 of file SMESH_fixation.py.

tuple SMESH_fixation.p23 = geompy.MakeVertex(x2, y1m, z3)

Definition at line 157 of file SMESH_fixation.py.

tuple SMESH_fixation.p24 = geompy.MakeVertex(x2, y1m, z4)

Definition at line 158 of file SMESH_fixation.py.

tuple SMESH_fixation.p_x3y2pz4p = geompy.MakeVertex(x3,y2p,z4p)

Definition at line 211 of file SMESH_fixation.py.

tuple SMESH_fixation.p_xcy2pz4p = geompy.MakeVertex(xc,y2p,z4p)

Definition at line 210 of file SMESH_fixation.py.

tuple SMESH_fixation.pbe = geompy.MakeVertex(3*he, -2*re, 3*he)

Definition at line 95 of file SMESH_fixation.py.

tuple SMESH_fixation.pc = geompy.MakeVertex(xc, 0., zc)

Definition at line 196 of file SMESH_fixation.py.

tuple SMESH_fixation.pc1 = geompy.MakeVertex(xc, y1m, z1)

Definition at line 150 of file SMESH_fixation.py.

tuple SMESH_fixation.pc2 = geompy.MakeVertex(xc, y1m, zc2)

Definition at line 151 of file SMESH_fixation.py.

tuple SMESH_fixation.pc3 = geompy.MakeVertex(xc, y1m, zc3)

Definition at line 152 of file SMESH_fixation.py.

tuple SMESH_fixation.pc4 = geompy.MakeVertex(xc, y1m, z4)

Definition at line 154 of file SMESH_fixation.py.

tuple SMESH_fixation.pcc = geompy.MakeVertex(xc, y1m, zc)

Definition at line 153 of file SMESH_fixation.py.

tuple SMESH_fixation.pcf = geompy.MakeVertex(xc, y2p, zc)

Definition at line 159 of file SMESH_fixation.py.

tuple SMESH_fixation.pcylx0 = geompy.MakeVertex(0., -marge, z2)

Definition at line 230 of file SMESH_fixation.py.

tuple SMESH_fixation.pcylx3 = geompy.MakeVertex(longueurPlq, -marge, z2)

Definition at line 231 of file SMESH_fixation.py.

tuple SMESH_fixation.pcyly0 = geompy.MakeVertex(-marge, 0., z2)

Definition at line 232 of file SMESH_fixation.py.

tuple SMESH_fixation.pf1 = geompy.MakeVertex(0., y0h, z3)

Definition at line 246 of file SMESH_fixation.py.

tuple SMESH_fixation.pf2 = geompy.MakeVertex(0., y1, z3)

Definition at line 247 of file SMESH_fixation.py.

tuple SMESH_fixation.pf3 = geompy.MakeVertex(0., y1, z4)

Definition at line 248 of file SMESH_fixation.py.

tuple SMESH_fixation.pf4 = geompy.MakeVertex(0., 0.5*(largeurPlq - epaisseurFond) , z4)

Definition at line 249 of file SMESH_fixation.py.

Definition at line 71 of file SMESH_fixation.py.

tuple SMESH_fixation.pxc = geompy.MakeVertex(xc,y0,z0)

Definition at line 212 of file SMESH_fixation.py.

tuple SMESH_fixation.py2 = geompy.MakeVertex(xc, y2, zc)

Definition at line 197 of file SMESH_fixation.py.

Definition at line 67 of file SMESH_fixation.py.

Definition at line 70 of file SMESH_fixation.py.

float SMESH_fixation.re = 0.5

Definition at line 86 of file SMESH_fixation.py.

tuple SMESH_fixation.segx11 = geompy.MakeVector(p11,p12)

Definition at line 167 of file SMESH_fixation.py.

tuple SMESH_fixation.segx12 = geompy.MakeVector(p12,p13)

Definition at line 168 of file SMESH_fixation.py.

tuple SMESH_fixation.segx13 = geompy.MakeVector(p13,p14)

Definition at line 169 of file SMESH_fixation.py.

tuple SMESH_fixation.segx1c1 = geompy.MakeVector(p13,pcc)

Definition at line 176 of file SMESH_fixation.py.

tuple SMESH_fixation.segx1c2 = geompy.MakeVector(p14,pcc)

Definition at line 177 of file SMESH_fixation.py.

tuple SMESH_fixation.segx21 = geompy.MakeVector(p21,p22)

Definition at line 173 of file SMESH_fixation.py.

tuple SMESH_fixation.segx22 = geompy.MakeVector(p22,p23)

Definition at line 174 of file SMESH_fixation.py.

tuple SMESH_fixation.segx23 = geompy.MakeVector(p23,p24)

Definition at line 175 of file SMESH_fixation.py.

tuple SMESH_fixation.segx2c1 = geompy.MakeVector(p23,pcc)

Definition at line 178 of file SMESH_fixation.py.

tuple SMESH_fixation.segx2c2 = geompy.MakeVector(p24,pcc)

Definition at line 179 of file SMESH_fixation.py.

tuple SMESH_fixation.segxc2 = geompy.MakeVector(pc1,pc2)

Definition at line 170 of file SMESH_fixation.py.

tuple SMESH_fixation.segxc3 = geompy.MakeVector(pc2,pc3)

Definition at line 171 of file SMESH_fixation.py.

tuple SMESH_fixation.segxc4 = geompy.MakeVector(pcc,pc4)

Definition at line 172 of file SMESH_fixation.py.

tuple SMESH_fixation.segz1 = geompy.MakeVector(p11,p21)

Definition at line 164 of file SMESH_fixation.py.

tuple SMESH_fixation.segz41 = geompy.MakeVector(p14,pc4)

Definition at line 165 of file SMESH_fixation.py.

tuple SMESH_fixation.segz42 = geompy.MakeVector(pc4,p24)

Definition at line 166 of file SMESH_fixation.py.

tuple SMESH_fixation.shape = geompy.MakeCopy(aretes[0])

Definition at line 103 of file SMESH_fixation.py.

Definition at line 87 of file SMESH_fixation.py.

Definition at line 73 of file SMESH_fixation.py.

tuple SMESH_fixation.vcccf = geompy.MakeVector(pcc, pcf)

Definition at line 190 of file SMESH_fixation.py.

tuple SMESH_fixation.ve = geompy.MakeVectorDXDYDZ(sine, 0., cose)

Definition at line 90 of file SMESH_fixation.py.

tuple SMESH_fixation.vf1 = geompy.MakeEdge(pf1, pf2)

Definition at line 251 of file SMESH_fixation.py.

tuple SMESH_fixation.vf2 = geompy.MakeEdge(pf2, pf3)

Definition at line 252 of file SMESH_fixation.py.

tuple SMESH_fixation.vf3 = geompy.MakeEdge(pf3, pf4)

Definition at line 253 of file SMESH_fixation.py.

tuple SMESH_fixation.vx = geompy.MakeVectorDXDYDZ(100., 0., 0.)

Definition at line 79 of file SMESH_fixation.py.

tuple SMESH_fixation.vy = geompy.MakeVectorDXDYDZ(0., 100., 0.)

Definition at line 80 of file SMESH_fixation.py.

tuple SMESH_fixation.vz = geompy.MakeVectorDXDYDZ(0., 0., 100.)

Definition at line 81 of file SMESH_fixation.py.

Definition at line 113 of file SMESH_fixation.py.

Definition at line 114 of file SMESH_fixation.py.

Definition at line 115 of file SMESH_fixation.py.

Definition at line 117 of file SMESH_fixation.py.

Definition at line 119 of file SMESH_fixation.py.

Definition at line 118 of file SMESH_fixation.py.

Definition at line 116 of file SMESH_fixation.py.

Definition at line 123 of file SMESH_fixation.py.

Definition at line 124 of file SMESH_fixation.py.

Definition at line 125 of file SMESH_fixation.py.

Definition at line 126 of file SMESH_fixation.py.

Definition at line 127 of file SMESH_fixation.py.

Definition at line 128 of file SMESH_fixation.py.

Definition at line 132 of file SMESH_fixation.py.

Definition at line 134 of file SMESH_fixation.py.

Definition at line 133 of file SMESH_fixation.py.

Definition at line 135 of file SMESH_fixation.py.

Definition at line 136 of file SMESH_fixation.py.

Definition at line 137 of file SMESH_fixation.py.

Definition at line 138 of file SMESH_fixation.py.

Definition at line 140 of file SMESH_fixation.py.

Definition at line 141 of file SMESH_fixation.py.

Definition at line 142 of file SMESH_fixation.py.