Back to index

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

Go to the source code of this file.

Namespaces

namespace  SMESH_Sphere

Variables

int SMESH_Sphere.Radius = 100
int SMESH_Sphere.Dist = 2
float SMESH_Sphere.Factor = 2.5
int SMESH_Sphere.Angle90 = 2
int SMESH_Sphere.NbSeg = 10
list SMESH_Sphere.PointsList = []
list SMESH_Sphere.ShapesList = []
tuple SMESH_Sphere.P0 = MakeVertex(0., 0., 0.)
tuple SMESH_Sphere.P1 = MakeVertex(-Dist, -Dist, -Dist)
tuple SMESH_Sphere.P2 = MakeVertex(-Dist, -Dist, Dist)
tuple SMESH_Sphere.P3 = MakeVertex(-Dist, Dist, Dist)
tuple SMESH_Sphere.P4 = MakeVertex(-Dist, Dist, -Dist)
tuple SMESH_Sphere.VZ = MakeVectorDXDYDZ(0., 0., 1.)
tuple SMESH_Sphere.PolyLine = MakePolyline(PointsList)
tuple SMESH_Sphere.Face1 = MakeFace(PolyLine, 1)
tuple SMESH_Sphere.Face2 = MakeScaleTransform(Face1, P0, Factor)
tuple SMESH_Sphere.Face3 = MakeScaleTransform(Face1, P0, -1.)
tuple SMESH_Sphere.Sphere = MakeSphereR(Radius)
tuple SMESH_Sphere.Block = MakeHexa2Faces(Face1, Face2)
tuple SMESH_Sphere.Cube = MakeHexa2Faces(Face1, Face3)
tuple SMESH_Sphere.Common1 = MakeBoolean(Sphere, Block, 1)
tuple SMESH_Sphere.Common2 = MakeRotation(Common1, VZ, Angle90)
tuple SMESH_Sphere.MultiBlock1 = MakeMultiTransformation1D(Common1, 20, -1, 3)
tuple SMESH_Sphere.MultiBlock2 = MakeMultiTransformation1D(Common2, 30, -1, 3)
tuple SMESH_Sphere.Compound = MakeCompound(ShapesList)
tuple SMESH_Sphere.Result = MakeGlueFaces(Compound, 0.1)
tuple SMESH_Sphere.Id_Sphere = addToStudy(Sphere, "Sphere")
tuple SMESH_Sphere.Id_Cube = addToStudy(Cube, "Cube")
tuple SMESH_Sphere.Id_Common1 = addToStudy(Common1, "Common1")
tuple SMESH_Sphere.Id_Common2 = addToStudy(Common2, "Common2")
tuple SMESH_Sphere.Id_MultiBlock1 = addToStudy(MultiBlock1, "MultiBlock1")
tuple SMESH_Sphere.Id_MultiBlock2 = addToStudy(MultiBlock2, "MultiBlock2")
tuple SMESH_Sphere.Id_Result = addToStudy(Result, "Result")
tuple SMESH_Sphere.my_hexa = smesh.Mesh(Result, "Sphere_Mesh")
tuple SMESH_Sphere.algo = my_hexa.Segment()