Version: 6.3.1
Variables

Package GEOM_Partition1

Variables

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

Variable Documentation

tuple GEOM_Partition1.colis_center = sqrt(2.0)
GEOM_Partition1.geom = geompy.geom
tuple GEOM_Partition1.pnt0 = geompy.MakeVertex(0.,0.,0.)
tuple GEOM_Partition1.vecz = geompy.MakeVectorDXDYDZ(0.,0.,1.)
Initial value:
00001 geompy.MakeCylinder(
00002     pnt0,
00003     vecz,
00004     barier_radius,
00005     barier_height)
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]])
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]])
tuple GEOM_Partition1.comp = geompy.MakeCompound(compGOs)
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS