31 #include <boost/python.hpp> 32 #include "G4Polyhedra.hh" 44 G4double phiStart, G4double phiTotal,
45 G4int numSide, G4int numZPlanes,
46 const std::vector<G4double>& zPlane,
47 const std::vector<G4double>& rInner,
48 const std::vector<G4double>& rOuter)
50 G4double zlist[numZPlanes];
51 G4double r0list[numZPlanes];
52 G4double r1list[numZPlanes];
54 for (G4int i=0; i< numZPlanes; i++) {
60 return new G4Polyhedra(name, phiStart, phiTotal, numSide, numZPlanes,
61 zlist, r0list, r1list);
66 G4double phiStart, G4double phiTotal,
67 G4int numSide, G4int numRZ,
68 const std::vector<G4double>&
r,
69 const std::vector<G4double>&
z)
71 G4double zlist[numRZ];
72 G4double rlist[numRZ];
74 for (G4int i=0; i< numRZ; i++) {
79 return new G4Polyhedra(name, phiStart, phiTotal, numSide, numRZ,
93 class_<G4Polyhedra, G4Polyhedra*, bases<G4VSolid> >
94 (
"G4Polyhedra",
"Polyhedra solid class", no_init)
96 .def(
"GetStartPhi", &G4Polyhedra::GetStartPhi)
97 .def(
"GetEndPhi", &G4Polyhedra::GetEndPhi)
98 .def(
"GetNumSide", &G4Polyhedra::GetNumSide)
99 .def(
"GetNumRZCorner", &G4Polyhedra::GetNumRZCorner)
100 .def(
"IsOpen", &G4Polyhedra::IsOpen)
101 .def(
"IsGeneric", &G4Polyhedra::IsGeneric)
104 .def(self_ns::str(
self))
109 return_value_policy<manage_new_object>());
111 return_value_policy<manage_new_object>());
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)
void export_G4Polyhedra()
G4Polyhedra * f2_CreatePolyhedra(const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)