Package GEOM_example4


Variables

tuple geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
tuple myBuilder = salome.myStudy.NewBuilder()
int ShapeTypeCompSolid = 1
int ShapeTypeSolid = 2
int ShapeTypeShell = 3
int ShapeTypeFace = 4
int ShapeTypeWire = 5
int ShapeTypeEdge = 6
int ShapeTypeVertex = 7
 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 hc1 = 300
int rc2 = 150
int rc3 = 150
int rc4 = 300
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)
tuple cyl_1 = geompy.MakeCylinder(point_0, dir_z, rc1, hc1)
int hc2 = 2
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)
int hc3 = 2
tuple cyl_t = geompy.MakeCylinder(point_0, dir_b, rc3, hc3)
tuple cyl_b = geompy.MakeTranslation(cyl_t, -1.2*rc1, -0.1*rc1, -0.5*hc1)
int hc4 = 2
tuple cyl_t = geompy.MakeCylinder(point_0, dir_c, rc4, hc4)
tuple cyl_t = geompy.MakeRotation(cyl_t, dir_c, pi/2)
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_t = geompy.MakeBoolean(blob_t, cyl_b, 2)
tuple blob = geompy.MakeBoolean(blob_t, inter_t, 1)
tuple idblob = geompy.addToStudy(blob,"blob")
tuple geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
tuple myBuilder = salome.myStudy.NewBuilder()
int ShapeTypeCompSolid = 1
int ShapeTypeSolid = 2
int ShapeTypeShell = 3
int ShapeTypeFace = 4
int ShapeTypeWire = 5
int ShapeTypeEdge = 6
int ShapeTypeVertex = 7
 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 hc1 = 300
int rc2 = 150
int rc3 = 150
int rc4 = 300
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)
tuple cyl_1 = geompy.MakeCylinder(point_0, dir_z, rc1, hc1)
int hc2 = 2
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)
int hc3 = 2
tuple cyl_t = geompy.MakeCylinder(point_0, dir_b, rc3, hc3)
tuple cyl_b = geompy.MakeTranslation(cyl_t, -1.2*rc1, -0.1*rc1, -0.5*hc1)
int hc4 = 2
tuple cyl_t = geompy.MakeCylinder(point_0, dir_c, rc4, hc4)
tuple cyl_t = geompy.MakeRotation(cyl_t, dir_c, pi/2)
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_t = geompy.MakeBoolean(blob_t, cyl_b, 2)
tuple blob = geompy.MakeBoolean(blob_t, inter_t, 1)
tuple idblob = geompy.addToStudy(blob,"blob")


Variable Documentation

tuple GEOM_example4.geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM") [static]
 

tuple GEOM_example4.myBuilder = salome.myStudy.NewBuilder() [static]
 

int GEOM_example4.ShapeTypeCompSolid = 1 [static]
 

int GEOM_example4.ShapeTypeSolid = 2 [static]
 

int GEOM_example4.ShapeTypeShell = 3 [static]
 

int GEOM_example4.ShapeTypeFace = 4 [static]
 

int GEOM_example4.ShapeTypeWire = 5 [static]
 

int GEOM_example4.ShapeTypeEdge = 6 [static]
 

int GEOM_example4.ShapeTypeVertex = 7 [static]
 

GEOM_example4.pi = math.pi [static]
 

tuple GEOM_example4.xa = math.sin(pi/12) [static]
 

int GEOM_example4.ya = 0 [static]
 

tuple GEOM_example4.za = math.cos(pi/12) [static]
 

int GEOM_example4.xb = 0 [static]
 

tuple GEOM_example4.yb = math.sin(pi/18) [static]
 

tuple GEOM_example4.zb = math.cos(pi/18) [static]
 

tuple GEOM_example4.xc = math.cos(-pi/18) [static]
 

int GEOM_example4.yc = 0 [static]
 

tuple GEOM_example4.zc = math.sin(-pi/18) [static]
 

int GEOM_example4.rc1 = 150 [static]
 

int GEOM_example4.hc1 = 300 [static]
 

int GEOM_example4.rc2 = 150 [static]
 

int GEOM_example4.rc3 = 150 [static]
 

int GEOM_example4.rc4 = 300 [static]
 

tuple GEOM_example4.point_0 = geompy.MakeVertex(0, 0, 0) [static]
 

tuple GEOM_example4.point_z = geompy.MakeVertex(0, 0, 1) [static]
 

tuple GEOM_example4.point_a = geompy.MakeVertex(xa, ya, za) [static]
 

tuple GEOM_example4.point_b = geompy.MakeVertex(xb, yb, zb) [static]
 

tuple GEOM_example4.point_c = geompy.MakeVertex(xc, yc, zc) [static]
 

tuple GEOM_example4.dir_z = geompy.MakeVector(point_0,point_z) [static]
 

tuple GEOM_example4.dir_a = geompy.MakeVector(point_0,point_a) [static]
 

tuple GEOM_example4.dir_b = geompy.MakeVector(point_0,point_b) [static]
 

tuple GEOM_example4.dir_c = geompy.MakeVector(point_0,point_c) [static]
 

tuple GEOM_example4.cyl_1 = geompy.MakeCylinder(point_0, dir_z, rc1, hc1) [static]
 

int GEOM_example4.hc2 = 2 [static]
 

tuple GEOM_example4.cyl_t = geompy.MakeCylinder(point_0, dir_a, rc2, hc2) [static]
 

tuple GEOM_example4.cyl_a = geompy.MakeTranslation(cyl_t, 1.2*rc1, 0.1*rc1, -0.5*hc1) [static]
 

int GEOM_example4.hc3 = 2 [static]
 

tuple GEOM_example4.cyl_t = geompy.MakeCylinder(point_0, dir_b, rc3, hc3) [static]
 

tuple GEOM_example4.cyl_b = geompy.MakeTranslation(cyl_t, -1.2*rc1, -0.1*rc1, -0.5*hc1) [static]
 

int GEOM_example4.hc4 = 2 [static]
 

tuple GEOM_example4.cyl_t = geompy.MakeCylinder(point_0, dir_c, rc4, hc4) [static]
 

tuple GEOM_example4.cyl_t = geompy.MakeRotation(cyl_t, dir_c, pi/2) [static]
 

tuple GEOM_example4.cyl_c = geompy.MakeTranslation(cyl_t, -hc1, 0, 0) [static]
 

tuple GEOM_example4.cyl_d = geompy.MakeTranslation(cyl_t, -hc1, 0, 1.3*rc4) [static]
 

tuple GEOM_example4.inter_t = geompy.MakeBoolean(cyl_c,cyl_d, 1) [static]
 

tuple GEOM_example4.blob_t = geompy.MakeBoolean(cyl_1, cyl_a, 2) [static]
 

tuple GEOM_example4.blob_t = geompy.MakeBoolean(blob_t, cyl_b, 2) [static]
 

tuple GEOM_example4.blob = geompy.MakeBoolean(blob_t, inter_t, 1) [static]
 

tuple GEOM_example4.idblob = geompy.addToStudy(blob,"blob") [static]
 

tuple GEOM_example4.geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM") [static]
 

tuple GEOM_example4.myBuilder = salome.myStudy.NewBuilder() [static]
 

int GEOM_example4.ShapeTypeCompSolid = 1 [static]
 

int GEOM_example4.ShapeTypeSolid = 2 [static]
 

int GEOM_example4.ShapeTypeShell = 3 [static]
 

int GEOM_example4.ShapeTypeFace = 4 [static]
 

int GEOM_example4.ShapeTypeWire = 5 [static]
 

int GEOM_example4.ShapeTypeEdge = 6 [static]
 

int GEOM_example4.ShapeTypeVertex = 7 [static]
 

GEOM_example4.pi = math.pi [static]
 

tuple GEOM_example4.xa = math.sin(pi/12) [static]
 

int GEOM_example4.ya = 0 [static]
 

tuple GEOM_example4.za = math.cos(pi/12) [static]
 

int GEOM_example4.xb = 0 [static]
 

tuple GEOM_example4.yb = math.sin(pi/18) [static]
 

tuple GEOM_example4.zb = math.cos(pi/18) [static]
 

tuple GEOM_example4.xc = math.cos(-pi/18) [static]
 

int GEOM_example4.yc = 0 [static]
 

tuple GEOM_example4.zc = math.sin(-pi/18) [static]
 

int GEOM_example4.rc1 = 150 [static]
 

int GEOM_example4.hc1 = 300 [static]
 

int GEOM_example4.rc2 = 150 [static]
 

int GEOM_example4.rc3 = 150 [static]
 

int GEOM_example4.rc4 = 300 [static]
 

tuple GEOM_example4.point_0 = geompy.MakeVertex(0, 0, 0) [static]
 

tuple GEOM_example4.point_z = geompy.MakeVertex(0, 0, 1) [static]
 

tuple GEOM_example4.point_a = geompy.MakeVertex(xa, ya, za) [static]
 

tuple GEOM_example4.point_b = geompy.MakeVertex(xb, yb, zb) [static]
 

tuple GEOM_example4.point_c = geompy.MakeVertex(xc, yc, zc) [static]
 

tuple GEOM_example4.dir_z = geompy.MakeVector(point_0,point_z) [static]
 

tuple GEOM_example4.dir_a = geompy.MakeVector(point_0,point_a) [static]
 

tuple GEOM_example4.dir_b = geompy.MakeVector(point_0,point_b) [static]
 

tuple GEOM_example4.dir_c = geompy.MakeVector(point_0,point_c) [static]
 

tuple GEOM_example4.cyl_1 = geompy.MakeCylinder(point_0, dir_z, rc1, hc1) [static]
 

int GEOM_example4.hc2 = 2 [static]
 

tuple GEOM_example4.cyl_t = geompy.MakeCylinder(point_0, dir_a, rc2, hc2) [static]
 

tuple GEOM_example4.cyl_a = geompy.MakeTranslation(cyl_t, 1.2*rc1, 0.1*rc1, -0.5*hc1) [static]
 

int GEOM_example4.hc3 = 2 [static]
 

tuple GEOM_example4.cyl_t = geompy.MakeCylinder(point_0, dir_b, rc3, hc3) [static]
 

tuple GEOM_example4.cyl_b = geompy.MakeTranslation(cyl_t, -1.2*rc1, -0.1*rc1, -0.5*hc1) [static]
 

int GEOM_example4.hc4 = 2 [static]
 

tuple GEOM_example4.cyl_t = geompy.MakeCylinder(point_0, dir_c, rc4, hc4) [static]
 

tuple GEOM_example4.cyl_t = geompy.MakeRotation(cyl_t, dir_c, pi/2) [static]
 

tuple GEOM_example4.cyl_c = geompy.MakeTranslation(cyl_t, -hc1, 0, 0) [static]
 

tuple GEOM_example4.cyl_d = geompy.MakeTranslation(cyl_t, -hc1, 0, 1.3*rc4) [static]
 

tuple GEOM_example4.inter_t = geompy.MakeBoolean(cyl_c,cyl_d, 1) [static]
 

tuple GEOM_example4.blob_t = geompy.MakeBoolean(cyl_1, cyl_a, 2) [static]
 

tuple GEOM_example4.blob_t = geompy.MakeBoolean(blob_t, cyl_b, 2) [static]
 

tuple GEOM_example4.blob = geompy.MakeBoolean(blob_t, inter_t, 1) [static]
 

tuple GEOM_example4.idblob = geompy.addToStudy(blob,"blob") [static]