Package SMESH_Sphere


Variables

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


Variable Documentation

int SMESH_Sphere.Radius = 100 [static]
 

int SMESH_Sphere.Dist = 2 [static]
 

float SMESH_Sphere.Factor = 2.5 [static]
 

int SMESH_Sphere.Angle90 = 2 [static]
 

int SMESH_Sphere.NbSeg = 10 [static]
 

list SMESH_Sphere.PointsList = [] [static]
 

list SMESH_Sphere.ShapesList = [] [static]
 

tuple SMESH_Sphere.P0 = MakeVertex(0., 0., 0.) [static]
 

tuple SMESH_Sphere.P1 = MakeVertex(-Dist, -Dist, -Dist) [static]
 

tuple SMESH_Sphere.P2 = MakeVertex(-Dist, -Dist, Dist) [static]
 

tuple SMESH_Sphere.P3 = MakeVertex(-Dist, Dist, Dist) [static]
 

tuple SMESH_Sphere.P4 = MakeVertex(-Dist, Dist, -Dist) [static]
 

tuple SMESH_Sphere.VZ = MakeVectorDXDYDZ(0., 0., 1.) [static]
 

tuple SMESH_Sphere.PolyLine = MakePolyline(PointsList) [static]
 

tuple SMESH_Sphere.Face1 = MakeFace(PolyLine, 1) [static]
 

tuple SMESH_Sphere.Face2 = MakeScaleTransform(Face1, P0, Factor) [static]
 

tuple SMESH_Sphere.Face3 = MakeScaleTransform(Face1, P0, -1.) [static]
 

tuple SMESH_Sphere.Sphere = MakeSphereR(Radius) [static]
 

int SMESH_Sphere.Block = 2 [static]
 

int SMESH_Sphere.Cube = 2 [static]
 

tuple SMESH_Sphere.Common1 = MakeBoolean(Sphere, Block, 1) [static]
 

tuple SMESH_Sphere.Common2 = MakeRotation(Common1, VZ, Angle90) [static]
 

int SMESH_Sphere.MultiBlock1 = 1 [static]
 

int SMESH_Sphere.MultiBlock2 = 1 [static]
 

tuple SMESH_Sphere.Compound = MakeCompound(ShapesList) [static]
 

tuple SMESH_Sphere.Result = MakeGlueFaces(Compound, 0.1) [static]
 

tuple SMESH_Sphere.Id_Sphere = addToStudy(Sphere, "Sphere") [static]
 

tuple SMESH_Sphere.Id_Cube = addToStudy(Cube, "Cube") [static]
 

tuple SMESH_Sphere.Id_Common1 = addToStudy(Common1, "Common1") [static]
 

tuple SMESH_Sphere.Id_Common2 = addToStudy(Common2, "Common2") [static]
 

tuple SMESH_Sphere.Id_MultiBlock1 = addToStudy(MultiBlock1, "MultiBlock1") [static]
 

tuple SMESH_Sphere.Id_MultiBlock2 = addToStudy(MultiBlock2, "MultiBlock2") [static]
 

tuple SMESH_Sphere.Id_Result = addToStudy(Result, "Result") [static]
 

tuple SMESH_Sphere.my_hexa = smesh.Mesh(Result, "Sphere_Mesh") [static]
 

tuple SMESH_Sphere.algo = my_hexa.Segment() [static]