36 #if defined(G4GEOM_USE_USOLIDS)
45 std::vector<G4TwoVector> polygon,
46 std::vector<ZSection> zsections)
47 : G4USolid(name, new UExtrudedSolid())
49 GetShape()->SetName(name);
50 std::vector<UVector2> pvec;
51 for (
unsigned int i=0; i<polygon.size(); ++i)
53 pvec.push_back(UVector2(polygon[i].
x(), polygon[i].y()));
55 std::vector<UExtrudedSolid::ZSection> svec;
56 for (
unsigned int i=0; i<zsections.size(); ++i)
58 ZSection sec = zsections[i];
59 svec.push_back(UExtrudedSolid::ZSection(sec.fZ,
60 UVector2(sec.fOffset.x(), sec.fOffset.y()), sec.fScale));
62 GetShape()->Initialise(pvec, svec);
66 G4UExtrudedSolid::G4UExtrudedSolid(
const G4String& name,
67 std::vector<G4TwoVector> polygon,
71 : G4USolid(name, new UExtrudedSolid())
73 GetShape()->SetName(name);
74 std::vector<UVector2> pvec;
75 for (
unsigned int i=0; i<polygon.size(); ++i)
77 pvec.push_back(UVector2(polygon[i].
x(), polygon[i].y()));
79 GetShape()->Initialise(pvec, halfZ, UVector2(off1.x(), off1.y()), scale1,
80 UVector2(off2.x(), off2.y()), scale2);
88 G4UExtrudedSolid::G4UExtrudedSolid(__void__&
a)
98 G4UExtrudedSolid::~G4UExtrudedSolid()
107 G4UExtrudedSolid::G4UExtrudedSolid(
const G4UExtrudedSolid &source)
118 G4UExtrudedSolid::operator=(
const G4UExtrudedSolid &source)
120 if (
this == &source)
return *
this;
122 G4USolid::operator=( source );
127 #endif // G4GEOM_USE_USOLIDS
const G4double x[NPOINTSGL]
CLHEP::Hep2Vector G4TwoVector