Back to index

salome-smesh  6.5.0
Variables
SMESH_hexaedre Namespace Reference

Variables

tuple geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
tuple myBuilder = salome.myStudy.NewBuilder()
tuple gg = salome.ImportComponentGUI("GEOM")
int ShapeTypeCompSolid = 1
int ShapeTypeSolid = 2
int ShapeTypeShell = 3
int ShapeTypeFace = 4
int ShapeTypeWire = 5
int ShapeTypeEdge = 6
int ShapeTypeVertex = 7
int Boolop_common = 1
int Boolop_cut = 2
int Boolop_fuse = 3
int Boolop_section = 4
tuple p0 = geompy.MakeVertex(0., 0., 0.)
tuple px = geompy.MakeVertex(100., 0., 0.)
tuple py = geompy.MakeVertex(0., 100., 0.)
tuple pz = geompy.MakeVertex(0., 0., 100.)
tuple vx = geompy.MakeVector(p0, px)
tuple vy = geompy.MakeVector(p0, py)
tuple vz = geompy.MakeVector(p0, pz)
tuple sphereExt = geompy.MakeSphere( 0., 0., 0., 400.)
tuple sphereInt = geompy.MakeSphere( 0.,-50., 0., 350.)
tuple sphereA = geompy.MakeSphere( -400., 50., 50., 400.)
tuple sphereB = geompy.MakeSphere( 350.,-50.,-50., 350.)
tuple ptcyle = geompy.MakeVertex(0., -300., -450.)
tuple cylindre = geompy.MakeCylinder(ptcyle,vz,500.,900.)
tuple vol1 = geompy.MakeCut(sphereExt,sphereA)
tuple vol2 = geompy.MakeCut(vol1,sphereB)
tuple vol3 = geompy.MakeCut(vol2,cylindre)
tuple blob = geompy.MakeCut(vol3,sphereInt)
tuple idblob = geompy.addToStudy(blob,"blob")
list aretes = []
int eid = 0
 shape_mesh = blob
 for edge in aretes: edname="arete%d"eid idedge=geompy.addToStudy(edge,edname) eid=eid+1
tuple mesh = smesh.Mesh(shape_mesh, "MeshBlob")
tuple algo1 = mesh.Segment()
tuple algo2 = mesh.Quadrangle()
tuple algo3 = mesh.Hexahedron()
int numberOfSegmentsA = 4
tuple algo = mesh.Segment(aretes[0])
int numberOfSegmentsC = 15
int numberOfSegmentsB = 10
tuple ret = mesh.Compute()

Variable Documentation

tuple SMESH_hexaedre.algo = mesh.Segment(aretes[0])

Definition at line 113 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.algo1 = mesh.Segment()

Definition at line 107 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.algo2 = mesh.Quadrangle()

Definition at line 108 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.algo3 = mesh.Hexahedron()

Definition at line 109 of file SMESH_hexaedre.py.

Definition at line 79 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.blob = geompy.MakeCut(vol3,sphereInt)

Definition at line 75 of file SMESH_hexaedre.py.

Definition at line 52 of file SMESH_hexaedre.py.

Definition at line 53 of file SMESH_hexaedre.py.

Definition at line 54 of file SMESH_hexaedre.py.

Definition at line 55 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.cylindre = geompy.MakeCylinder(ptcyle,vz,500.,900.)

Definition at line 70 of file SMESH_hexaedre.py.

Definition at line 81 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")

Definition at line 40 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.gg = salome.ImportComponentGUI("GEOM")

Definition at line 42 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.idblob = geompy.addToStudy(blob,"blob")

Definition at line 77 of file SMESH_hexaedre.py.

Definition at line 103 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.myBuilder = salome.myStudy.NewBuilder()

Definition at line 41 of file SMESH_hexaedre.py.

Definition at line 111 of file SMESH_hexaedre.py.

Definition at line 135 of file SMESH_hexaedre.py.

Definition at line 123 of file SMESH_hexaedre.py.

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

Definition at line 57 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.ptcyle = geompy.MakeVertex(0., -300., -450.)

Definition at line 69 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.px = geompy.MakeVertex(100., 0., 0.)

Definition at line 58 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.py = geompy.MakeVertex(0., 100., 0.)

Definition at line 59 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.pz = geompy.MakeVertex(0., 0., 100.)

Definition at line 60 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.ret = mesh.Compute()

Definition at line 149 of file SMESH_hexaedre.py.

for edge in aretes: edname="arete%d"eid idedge=geompy.addToStudy(edge,edname) eid=eid+1

Definition at line 102 of file SMESH_hexaedre.py.

Definition at line 44 of file SMESH_hexaedre.py.

Definition at line 49 of file SMESH_hexaedre.py.

Definition at line 47 of file SMESH_hexaedre.py.

Definition at line 46 of file SMESH_hexaedre.py.

Definition at line 45 of file SMESH_hexaedre.py.

Definition at line 50 of file SMESH_hexaedre.py.

Definition at line 48 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.sphereA = geompy.MakeSphere( -400., 50., 50., 400.)

Definition at line 67 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.sphereB = geompy.MakeSphere( 350.,-50.,-50., 350.)

Definition at line 68 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.sphereExt = geompy.MakeSphere( 0., 0., 0., 400.)

Definition at line 65 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.sphereInt = geompy.MakeSphere( 0.,-50., 0., 350.)

Definition at line 66 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.vol1 = geompy.MakeCut(sphereExt,sphereA)

Definition at line 72 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.vol2 = geompy.MakeCut(vol1,sphereB)

Definition at line 73 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.vol3 = geompy.MakeCut(vol2,cylindre)

Definition at line 74 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.vx = geompy.MakeVector(p0, px)

Definition at line 61 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.vy = geompy.MakeVector(p0, py)

Definition at line 62 of file SMESH_hexaedre.py.

tuple SMESH_hexaedre.vz = geompy.MakeVector(p0, pz)

Definition at line 63 of file SMESH_hexaedre.py.