52#ifndef G4EXTRUDEDSOLID_HH
53#define G4EXTRUDEDSOLID_HH
57#if defined(G4GEOM_USE_USOLIDS)
58#define G4GEOM_USE_UEXTRUDEDSOLID 1
61#if defined(G4GEOM_USE_UEXTRUDEDSOLID)
62 #define G4UExtrudedSolid G4ExtrudedSolid
90 const std::vector<G4TwoVector>& polygon,
91 const std::vector<ZSection>& zsections);
95 const std::vector<G4TwoVector>& polygon,
124 const G4bool calcNorm =
false,
125 G4bool* validNorm =
nullptr,
137 std::ostream&
StreamInfo(std::ostream& os)
const;
152 void ComputeProjectionParameters();
153 void ComputeLateralPlanes();
182 G4bool AddGeneralPolygonFacets();
189 std::vector<G4TwoVector> fPolygon;
190 std::vector<ZSection> fZSections;
191 std::vector< std::vector<G4int> > fTriangles;
195 G4int fSolidType = 0;
197 std::vector<plane> fPlanes;
199 std::vector<line> fLines;
200 std::vector<G4double> fLengths;
202 std::vector<G4double> fKScales;
203 std::vector<G4double> fScale0s;
204 std::vector<G4TwoVector> fKOffsets;
205 std::vector<G4TwoVector> fOffset0s;
208#include "G4ExtrudedSolid.icc"
CLHEP::Hep2Vector G4TwoVector
G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
std::vector< G4TwoVector > GetPolygon() const
EInside Inside(const G4ThreeVector &p) const
G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=nullptr, G4ThreeVector *n=nullptr) const
std::ostream & StreamInfo(std::ostream &os) const
virtual ~G4ExtrudedSolid()
G4ExtrudedSolid & operator=(const G4ExtrudedSolid &rhs)
void BoundingLimits(G4ThreeVector &pMin, G4ThreeVector &pMax) const
std::vector< ZSection > GetZSections() const
G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const
G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const
G4GeometryType GetEntityType() const
ZSection GetZSection(G4int index) const
G4int GetNofZSections() const
G4int GetNofVertices() const
G4TwoVector GetVertex(G4int index) const
ZSection(G4double z, const G4TwoVector &offset, G4double scale)