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;
176 const std::vector<G4TwoVector>& poly)
const;
182 const G4int ipl)
const;
static const G4double pMax
static const G4double pMin
G4VFacet * MakeUpFacet(const std::vector< G4ThreeVector > &fromVertices, G4int ind1, G4int ind2, G4int ind3) const
std::vector< G4TwoVector > fVertices
G4int GetNofVertices() const
G4Polyhedron * CreatePolyhedron() const
G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const
G4GenericTrap & operator=(const G4GenericTrap &rhs)
G4double SafetyToFace(const G4ThreeVector &p, const G4int iseg) const
G4double GetFaceCubicVolume(const G4ThreeVector &p0, const G4ThreeVector &p1, const G4ThreeVector &p2, const G4ThreeVector &p3) const
G4double GetZHalfLength() const
G4double GetCubicVolume()
G4TwoVector GetVertex(G4int index) const
G4double GetSurfaceArea()
EInside InsidePolygone(const G4ThreeVector &p, const std::vector< G4TwoVector > &poly) const
static const G4int fgkNofVertices
G4bool fRebuildPolyhedron
G4ThreeVector GetPointOnSurface() const
G4double GetTwistAngle(G4int index) const
G4double halfCarTolerance
G4double GetTwistedFaceSurfaceArea(const G4ThreeVector &p0, const G4ThreeVector &p1, const G4ThreeVector &p2, const G4ThreeVector &p3) const
G4ThreeVector GetMinimumBBox() const
G4double GetFaceSurfaceArea(const G4ThreeVector &p0, const G4ThreeVector &p1, const G4ThreeVector &p2, const G4ThreeVector &p3) const
G4Polyhedron * GetPolyhedron() const
std::ostream & StreamInfo(std::ostream &os) const
G4ThreeVector fMinBBoxVector
G4ThreeVector fMaxBBoxVector
G4bool ComputeIsTwisted()
G4ThreeVector GetMaximumBBox() const
G4VisExtent GetExtent() const
G4VFacet * MakeDownFacet(const std::vector< G4ThreeVector > &fromVertices, G4int ind1, G4int ind2, G4int ind3) const
EInside Inside(const G4ThreeVector &p) const
void ReorderVertices(std::vector< G4ThreeVector > &vertices) const
G4double DistToTriangle(const G4ThreeVector &p, const G4ThreeVector &v, const G4int ipl) const
G4bool IsSegCrossingZ(const G4TwoVector &a, const G4TwoVector &b, const G4TwoVector &c, const G4TwoVector &d) const
G4VFacet * MakeSideFacet(const G4ThreeVector &downVertex0, const G4ThreeVector &downVertex1, const G4ThreeVector &upVertex1, const G4ThreeVector &upVertex0) const
G4GeometryType GetEntityType() const
G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const
G4TessellatedSolid * fTessellatedSolid
const std::vector< G4TwoVector > & GetVertices() const
static const G4double fgkTolerance
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)
G4double DistToPlane(const G4ThreeVector &p, const G4ThreeVector &v, const G4int ipl) const
G4TessellatedSolid * CreateTessellatedSolid() const
G4bool CheckOrder(const std::vector< G4TwoVector > &vertices) const
void SetTwistAngle(G4int index, G4double twist)
G4GenericTrap(const G4String &name, G4double halfZ, const std::vector< G4TwoVector > &vertices)
G4Polyhedron * fpPolyhedron
G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pmin, G4double &pmax) const
G4ThreeVector NormalToPlane(const G4ThreeVector &p, const G4int ipl) const
G4bool IsSegCrossing(const G4TwoVector &a, const G4TwoVector &b, const G4TwoVector &c, const G4TwoVector &d) const
const char * name(G4int ptype)