33 #include <boost/python.hpp>
36 using namespace boost::python;
41 namespace pyG4Polycone {
47 const std::vector<G4double>& zPlane,
48 const std::vector<G4double>& rInner,
49 const std::vector<G4double>& rOuter)
55 for (
G4int i=0; i< numZPlanes; i++) {
61 return new G4Polycone(name, phiStart, phiTotal, numZPlanes,
62 zlist, r0list, r1list);
68 const std::vector<G4double>&
r,
69 const std::vector<G4double>&
z)
74 for (
G4int i=0; i< numRZ; i++) {
79 return new G4Polycone(name, phiStart, phiTotal, numRZ,
86 using namespace pyG4Polycone;
94 class_<G4Polycone, G4Polycone*, bases<G4VSolid> >
95 (
"G4Polycone",
"Polycone solid class", no_init)
104 .def(self_ns::str(
self))
109 return_value_policy<manage_new_object>());
111 return_value_policy<manage_new_object>());