63 #ifndef G4ExtrudedSolid_HH
64 #define G4ExtrudedSolid_HH
66 #if defined(G4GEOM_USE_USOLIDS)
67 #define G4GEOM_USE_UEXTRUDEDSOLID 1
70 #if defined(G4GEOM_USE_UEXTRUDEDSOLID)
71 #define G4UExtrudedSolid G4ExtrudedSolid
101 const std::vector<G4TwoVector>& polygon,
102 const std::vector<ZSection>& zsections);
106 const std::vector<G4TwoVector>& polygon,
119 inline std::vector<G4TwoVector>
GetPolygon()
const;
130 const G4bool calcNorm=
false,
141 std::ostream&
StreamInfo(std::ostream &os)
const;
156 void ComputeProjectionParameters();
182 G4bool AddGeneralPolygonFacets();
189 std::vector<G4TwoVector> fPolygon;
190 std::vector<ZSection> fZSections;
191 std::vector< std::vector<G4int> > fTriangles;
195 std::vector<G4double> fKScales;
196 std::vector<G4double> fScale0s;
197 std::vector<G4TwoVector> fKOffsets;
198 std::vector<G4TwoVector> fOffset0s;
201 #include "G4ExtrudedSolid.icc"
std::vector< G4TwoVector > GetPolygon() const
G4GeometryType GetEntityType() const
void Extent(G4ThreeVector &pMin, G4ThreeVector &pMax) const
std::vector< ExP01TrackerHit * > a
G4ExtrudedSolid(const G4String &pName, const std::vector< G4TwoVector > &polygon, const std::vector< ZSection > &zsections)
virtual ~G4ExtrudedSolid()
EInside Inside(const G4ThreeVector &p) const
G4TwoVector GetVertex(G4int index) const
G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
G4int GetNofVertices() const
ZSection(G4double z, const G4TwoVector &offset, G4double scale)
G4int GetNofZSections() const
std::ostream & StreamInfo(std::ostream &os) const
ZSection GetZSection(G4int index) const
std::vector< ZSection > GetZSections() const
G4ExtrudedSolid & operator=(const G4ExtrudedSolid &rhs)