Back to index

salome-smesh  6.5.0
Variables
SMESH_test3 Namespace Reference

Variables

 pi = math.pi
tuple xa = math.sin(pi/12)
int ya = 0
tuple za = math.cos(pi/12)
int xb = 0
tuple yb = math.sin(pi/18)
tuple zb = math.cos(pi/18)
tuple xc = math.cos(-pi/18)
int yc = 0
tuple zc = math.sin(-pi/18)
int rc1 = 150
int rc2 = 150
int rc3 = 150
int rc4 = 300
int hc1 = 300
int hc2 = 2
int hc3 = 2
int hc4 = 2
tuple point_0 = geompy.MakeVertex(0, 0, 0)
tuple point_z = geompy.MakeVertex(0, 0, 1)
tuple point_a = geompy.MakeVertex(xa, ya, za)
tuple point_b = geompy.MakeVertex(xb, yb, zb)
tuple point_c = geompy.MakeVertex(xc, yc, zc)
tuple dir_z = geompy.MakeVector(point_0, point_z)
tuple dir_a = geompy.MakeVector(point_0, point_a)
tuple dir_b = geompy.MakeVector(point_0, point_b)
tuple dir_c = geompy.MakeVector(point_0, point_c)
 axe_z = dir_z
 axe_a = dir_a
 axe_b = dir_b
 axe_c = dir_c
tuple cyl_1 = geompy.MakeCylinder(point_0, dir_z, rc1, hc1)
tuple cyl_t = geompy.MakeCylinder(point_0, dir_a, rc2, hc2)
tuple cyl_a = geompy.MakeTranslation(cyl_t, 1.2*rc1, 0.1*rc1, -0.5*hc1)
tuple cyl_b = geompy.MakeTranslation(cyl_t, -1.2*rc1, -0.1*rc1, -0.5*hc1)
tuple cyl_c = geompy.MakeTranslation(cyl_t, -hc1, 0, 0)
tuple cyl_d = geompy.MakeTranslation(cyl_t, -hc1, 0, 1.3*rc4)
tuple inter_t = geompy.MakeBoolean(cyl_c,cyl_d, 1)
tuple blob_t = geompy.MakeBoolean(cyl_1, cyl_a, 2)
tuple blob = geompy.MakeBoolean(blob_t, inter_t, 1)
tuple idblob = geompy.addToStudy(blob,"blob")

Variable Documentation

Definition at line 70 of file SMESH_test3.py.

Definition at line 71 of file SMESH_test3.py.

Definition at line 72 of file SMESH_test3.py.

Definition at line 69 of file SMESH_test3.py.

tuple SMESH_test3.blob = geompy.MakeBoolean(blob_t, inter_t, 1)

Definition at line 92 of file SMESH_test3.py.

tuple SMESH_test3.blob_t = geompy.MakeBoolean(cyl_1, cyl_a, 2)

Definition at line 89 of file SMESH_test3.py.

tuple SMESH_test3.cyl_1 = geompy.MakeCylinder(point_0, dir_z, rc1, hc1)

Definition at line 74 of file SMESH_test3.py.

tuple SMESH_test3.cyl_a = geompy.MakeTranslation(cyl_t, 1.2*rc1, 0.1*rc1, -0.5*hc1)

Definition at line 77 of file SMESH_test3.py.

tuple SMESH_test3.cyl_b = geompy.MakeTranslation(cyl_t, -1.2*rc1, -0.1*rc1, -0.5*hc1)

Definition at line 80 of file SMESH_test3.py.

tuple SMESH_test3.cyl_c = geompy.MakeTranslation(cyl_t, -hc1, 0, 0)

Definition at line 84 of file SMESH_test3.py.

tuple SMESH_test3.cyl_d = geompy.MakeTranslation(cyl_t, -hc1, 0, 1.3*rc4)

Definition at line 85 of file SMESH_test3.py.

tuple SMESH_test3.cyl_t = geompy.MakeCylinder(point_0, dir_a, rc2, hc2)

Definition at line 76 of file SMESH_test3.py.

tuple SMESH_test3.dir_a = geompy.MakeVector(point_0, point_a)

Definition at line 65 of file SMESH_test3.py.

tuple SMESH_test3.dir_b = geompy.MakeVector(point_0, point_b)

Definition at line 66 of file SMESH_test3.py.

tuple SMESH_test3.dir_c = geompy.MakeVector(point_0, point_c)

Definition at line 67 of file SMESH_test3.py.

tuple SMESH_test3.dir_z = geompy.MakeVector(point_0, point_z)

Definition at line 64 of file SMESH_test3.py.

int SMESH_test3.hc1 = 300

Definition at line 51 of file SMESH_test3.py.

int SMESH_test3.hc2 = 2

Definition at line 52 of file SMESH_test3.py.

int SMESH_test3.hc3 = 2

Definition at line 53 of file SMESH_test3.py.

int SMESH_test3.hc4 = 2

Definition at line 54 of file SMESH_test3.py.

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

Definition at line 94 of file SMESH_test3.py.

tuple SMESH_test3.inter_t = geompy.MakeBoolean(cyl_c,cyl_d, 1)

Definition at line 87 of file SMESH_test3.py.

SMESH_test3.pi = math.pi

Definition at line 31 of file SMESH_test3.py.

tuple SMESH_test3.point_0 = geompy.MakeVertex(0, 0, 0)

Definition at line 57 of file SMESH_test3.py.

tuple SMESH_test3.point_a = geompy.MakeVertex(xa, ya, za)

Definition at line 60 of file SMESH_test3.py.

tuple SMESH_test3.point_b = geompy.MakeVertex(xb, yb, zb)

Definition at line 61 of file SMESH_test3.py.

tuple SMESH_test3.point_c = geompy.MakeVertex(xc, yc, zc)

Definition at line 62 of file SMESH_test3.py.

tuple SMESH_test3.point_z = geompy.MakeVertex(0, 0, 1)

Definition at line 58 of file SMESH_test3.py.

int SMESH_test3.rc1 = 150

Definition at line 46 of file SMESH_test3.py.

int SMESH_test3.rc2 = 150

Definition at line 47 of file SMESH_test3.py.

int SMESH_test3.rc3 = 150

Definition at line 48 of file SMESH_test3.py.

int SMESH_test3.rc4 = 300

Definition at line 49 of file SMESH_test3.py.

tuple SMESH_test3.xa = math.sin(pi/12)

Definition at line 34 of file SMESH_test3.py.

int SMESH_test3.xb = 0

Definition at line 38 of file SMESH_test3.py.

tuple SMESH_test3.xc = math.cos(-pi/18)

Definition at line 42 of file SMESH_test3.py.

int SMESH_test3.ya = 0

Definition at line 35 of file SMESH_test3.py.

tuple SMESH_test3.yb = math.sin(pi/18)

Definition at line 39 of file SMESH_test3.py.

int SMESH_test3.yc = 0

Definition at line 43 of file SMESH_test3.py.

tuple SMESH_test3.za = math.cos(pi/12)

Definition at line 36 of file SMESH_test3.py.

tuple SMESH_test3.zb = math.cos(pi/18)

Definition at line 40 of file SMESH_test3.py.

tuple SMESH_test3.zc = math.sin(-pi/18)

Definition at line 44 of file SMESH_test3.py.