31#include <boost/python.hpp>
35using namespace boost::python;
47 const std::vector<G4double>& zPlane,
48 const std::vector<G4double>& rInner,
49 const std::vector<G4double>& rOuter)
52 std::unique_ptr<G4double[]> r0list(
new G4double[numZPlanes]);
53 std::unique_ptr<G4double[]> r1list(
new G4double[numZPlanes]);
55 for (
G4int i=0; i< numZPlanes; i++) {
62 zlist.get(), r0list.get(), r1list.get());
69 const std::vector<G4double>& r,
70 const std::vector<G4double>& z)
73 std::unique_ptr<G4double[]> rlist(
new G4double[numRZ]);
75 for (
G4int i=0; i< numRZ; i++) {
81 rlist.get(),
zlist.get());
94 class_<G4Polyhedra, G4Polyhedra*, bases<G4VSolid> >
95 (
"G4Polyhedra",
"Polyhedra solid class", no_init)
105 .def(self_ns::str(self))
110 return_value_policy<manage_new_object>());
112 return_value_policy<manage_new_object>());
G4int GetNumRZCorner() const
G4double GetEndPhi() const
G4double GetStartPhi() const
const char * name(G4int ptype)
G4Polyhedra * f1_CreatePolyhedra(const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
G4Polyhedra * f2_CreatePolyhedra(const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)
void export_G4Polyhedra()