Back to index

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

Go to the source code of this file.

Namespaces

namespace  SMESH_demo_hexa2_upd

Variables

int SMESH_demo_hexa2_upd.ShapeTypeShell = 3
int SMESH_demo_hexa2_upd.ShapeTypeFace = 4
int SMESH_demo_hexa2_upd.ShapeTypeEdge = 6
tuple SMESH_demo_hexa2_upd.a = math.sqrt(2.)
 SMESH_demo_hexa2_upd.ma = -a
int SMESH_demo_hexa2_upd.zero = 0
int SMESH_demo_hexa2_upd.un = 1
 SMESH_demo_hexa2_upd.mun = -un
int SMESH_demo_hexa2_upd.demi = 1
tuple SMESH_demo_hexa2_upd.Orig = geompy.MakeVertex(zero,zero,zero)
tuple SMESH_demo_hexa2_upd.P0 = geompy.MakeVertex(a,a,zero)
tuple SMESH_demo_hexa2_upd.P1 = geompy.MakeVertex(zero,demi,zero)
tuple SMESH_demo_hexa2_upd.P2 = geompy.MakeVertex(ma,a,zero)
tuple SMESH_demo_hexa2_upd.P3 = geompy.MakeVertex(mun,un,zero)
tuple SMESH_demo_hexa2_upd.P4 = geompy.MakeVertex(un,un,zero)
tuple SMESH_demo_hexa2_upd.P5 = geompy.MakeVertex(zero,zero,un)
tuple SMESH_demo_hexa2_upd.arc = geompy.MakeArc(P0,P1,P2)
tuple SMESH_demo_hexa2_upd.e1 = geompy.MakeEdge(P2,P3)
tuple SMESH_demo_hexa2_upd.e2 = geompy.MakeEdge(P3,P4)
tuple SMESH_demo_hexa2_upd.e3 = geompy.MakeEdge(P4,P0)
list SMESH_demo_hexa2_upd.list = []
tuple SMESH_demo_hexa2_upd.wire = geompy.MakeWire(list)
tuple SMESH_demo_hexa2_upd.face = geompy.MakeFace(wire,1)
tuple SMESH_demo_hexa2_upd.dir = geompy.MakeVector(Orig,P5)
tuple SMESH_demo_hexa2_upd.vol1 = geompy.MakePipe(face,dir)
int SMESH_demo_hexa2_upd.angle = 2
tuple SMESH_demo_hexa2_upd.vol2 = geompy.MakeRotation(vol1,dir,angle)
tuple SMESH_demo_hexa2_upd.vol3 = geompy.MakeRotation(vol2,dir,angle)
tuple SMESH_demo_hexa2_upd.vol4 = geompy.MakeRotation(vol3,dir,angle)
tuple SMESH_demo_hexa2_upd.volComp = geompy.MakeCompound(list)
int SMESH_demo_hexa2_upd.tol3d = 1
tuple SMESH_demo_hexa2_upd.vol = geompy.MakeGlueFaces(volComp,tol3d)
tuple SMESH_demo_hexa2_upd.idVol = geompy.addToStudy(vol,"volume")
tuple SMESH_demo_hexa2_upd.subShellList = geompy.SubShapeAllSorted(vol,ShapeTypeShell)
tuple SMESH_demo_hexa2_upd.subFaceList = geompy.SubShapeAllSorted(vol,ShapeTypeFace)
tuple SMESH_demo_hexa2_upd.subEdgeList = geompy.SubShapeAllSorted(vol,ShapeTypeEdge)
list SMESH_demo_hexa2_upd.idSubEdge = []
list SMESH_demo_hexa2_upd.edgeZ = []
list SMESH_demo_hexa2_upd.idEdgeZ = []
tuple SMESH_demo_hexa2_upd.mesh = smesh.Mesh(vol, "meshVolume")
 ---------------------------- SMESH --------------------------------------
int SMESH_demo_hexa2_upd.numberOfSegments = 10
tuple SMESH_demo_hexa2_upd.regular1D = mesh.Segment()
tuple SMESH_demo_hexa2_upd.hypNbSeg = regular1D.NumberOfSegments(numberOfSegments)
tuple SMESH_demo_hexa2_upd.quad2D = mesh.Quadrangle()
tuple SMESH_demo_hexa2_upd.hexa3D = mesh.Hexahedron()
int SMESH_demo_hexa2_upd.numberOfSegmentsZ = 40
tuple SMESH_demo_hexa2_upd.algo = mesh.Segment(edgeZ[i])
tuple SMESH_demo_hexa2_upd.hyp = algo.NumberOfSegments(numberOfSegmentsZ)
tuple SMESH_demo_hexa2_upd.ret = mesh.Compute()