Back to index

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

Go to the source code of this file.

Namespaces

namespace  SMESH_test3

Variables

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