58#ifndef G4GENERICTRAP_HH
59#define G4GENERICTRAP_HH
63#if defined(G4GEOM_USE_USOLIDS)
64#define G4GEOM_USE_UGENERICTRAP 1
67#if defined(G4GEOM_USE_UGENERICTRAP)
68 #define G4UGenericTrap G4GenericTrap
84 const std::vector<G4TwoVector>& vertices );
110 const G4bool calcNorm =
false,
111 G4bool* validNorm =
nullptr,
124 std::ostream&
StreamInfo(std::ostream& os)
const;
154 G4bool ComputeIsTwisted() ;
155 G4bool CheckOrder(
const std::vector<G4TwoVector>& vertices)
const;
160 void ReorderVertices(std::vector<G4ThreeVector>& vertices)
const;
165 G4VFacet* MakeDownFacet(
const std::vector<G4ThreeVector>& fromVertices,
167 G4VFacet* MakeUpFacet(
const std::vector<G4ThreeVector>& fromVertices,
176 const std::vector<G4TwoVector>& poly)
const;
182 const G4int ipl)
const;
195 static const G4int fgkNofVertices;
203 std::vector<G4TwoVector> fVertices;
204 G4bool fIsTwisted =
false;
209 G4int fVisSubdivisions = 0;
211 enum ESide {kUndef,kXY0,kXY1,kXY2,kXY3,kMZ,kPZ};
219#include "G4GenericTrap.icc"
G4int GetNofVertices() const
G4Polyhedron * CreatePolyhedron() const
G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const
G4GenericTrap & operator=(const G4GenericTrap &rhs)
G4double GetZHalfLength() const
G4double GetCubicVolume()
G4TwoVector GetVertex(G4int index) const
G4double GetSurfaceArea()
G4bool fRebuildPolyhedron
G4ThreeVector GetPointOnSurface() const
G4double GetTwistAngle(G4int index) const
G4Polyhedron * GetPolyhedron() const
std::ostream & StreamInfo(std::ostream &os) const
G4VisExtent GetExtent() const
EInside Inside(const G4ThreeVector &p) const
G4GeometryType GetEntityType() const
G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const
const std::vector< G4TwoVector > & GetVertices() const
void BoundingLimits(G4ThreeVector &pMin, G4ThreeVector &pMax) const
G4int GetVisSubdivisions() const
G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=nullptr, G4ThreeVector *n=nullptr) const
void DescribeYourselfTo(G4VGraphicsScene &scene) const
void SetVisSubdivisions(G4int subdiv)
G4Polyhedron * fpPolyhedron
G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pmin, G4double &pmax) const