33 #include <boost/python.hpp>
36 using namespace boost::python;
41 namespace pyG4Polyhedra {
48 const std::vector<G4double>& zPlane,
49 const std::vector<G4double>& rInner,
50 const std::vector<G4double>& rOuter)
56 for (
G4int i=0; i< numZPlanes; i++) {
62 return new G4Polyhedra(name, phiStart, phiTotal, numSide, numZPlanes,
63 zlist, r0list, r1list);
70 const std::vector<G4double>&
r,
71 const std::vector<G4double>&
z)
76 for (
G4int i=0; i< numRZ; i++) {
81 return new G4Polyhedra(name, phiStart, phiTotal, numSide, numRZ,
88 using namespace pyG4Polyhedra;
95 class_<G4Polyhedra, G4Polyhedra*, bases<G4VSolid> >
96 (
"G4Polyhedra",
"Polyhedra solid class", no_init)
106 .def(self_ns::str(
self))
111 return_value_policy<manage_new_object>());
113 return_value_policy<manage_new_object>());