Back to index

salome-geom  6.5.0
Namespaces | Variables
GEOM_Partition1.py File Reference

Go to the source code of this file.

Namespaces

namespace  GEOM_Partition1

Variables

float GEOM_Partition1.barier_height = 7.0
float GEOM_Partition1.barier_radius = 5.6
float GEOM_Partition1.colis_radius = 1.0
float GEOM_Partition1.colis_step = 2.0
float GEOM_Partition1.cc_width = 0.11
 GEOM_Partition1.cc_radius = colis_radius+cc_width
tuple GEOM_Partition1.colis_center = sqrt(2.0)
 GEOM_Partition1.geom = geompy.geom
int GEOM_Partition1.boolean_common = 1
int GEOM_Partition1.boolean_cut = 2
int GEOM_Partition1.boolean_fuse = 3
int GEOM_Partition1.boolean_section = 4
tuple GEOM_Partition1.pnt0 = geompy.MakeVertex(0.,0.,0.)
tuple GEOM_Partition1.vecz = geompy.MakeVectorDXDYDZ(0.,0.,1.)
tuple GEOM_Partition1.barier
tuple GEOM_Partition1.colis = geompy.MakeCylinder(pnt0, vecz, colis_radius, barier_height)
tuple GEOM_Partition1.cc = geompy.MakeCylinder(pnt0, vecz, cc_radius, barier_height)
tuple GEOM_Partition1.colis_cc = geompy.MakeCompound([colis, cc])
tuple GEOM_Partition1.colis_cc_multi = geompy.MultiRotate1D(colis_cc, vecz, 4)
tuple GEOM_Partition1.Compound1 = geompy.MakeCompound([colis_cc_multi, barier])
tuple GEOM_Partition1.SubShape_theShape = geompy.SubShapeAll(Compound1,geompy.ShapeType["SOLID"])
tuple GEOM_Partition1.alveole = geompy.MakePartition(SubShape_theShape)
tuple GEOM_Partition1.subshapes = geompy.SubShapeAll(alveole, geompy.ShapeType["SHAPE"])
tuple GEOM_Partition1.comp1 = geompy.MakeCompound([subshapes[0], subshapes[1]])
 there are 9 sub-shapes
tuple GEOM_Partition1.comp2 = geompy.MakeCompound([subshapes[2], subshapes[3]])
tuple GEOM_Partition1.comp3 = geompy.MakeCompound([subshapes[4], subshapes[5]])
tuple GEOM_Partition1.comp4 = geompy.MakeCompound([subshapes[6], subshapes[7]])
list GEOM_Partition1.compGOs = []
tuple GEOM_Partition1.comp = geompy.MakeCompound(compGOs)