99 #ifndef G4TessellatedSolid_hh
100 #define G4TessellatedSolid_hh 1
102 #if defined(G4GEOM_USE_USOLIDS)
103 #define G4GEOM_USE_UTESSELLATEDSOLID 1
106 #if defined(G4GEOM_USE_UTESSELLATEDSOLID)
107 #define G4UTessellatedSolid G4TessellatedSolid
174 G4bool aAccurate=
false)
const;
176 G4bool aAccurate=
false)
const;
179 virtual std::ostream &
StreamInfo(std::ostream &os)
const;
234 G4int &minCandidate)
const;
259 const std::vector<G4int> &max,
266 const std::pair<G4int, G4double> &r);
void CopyObjects(const G4TessellatedSolid &s)
G4double GetMinZExtent() const
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4bool GetSolidClosed() const
G4double GetMaxXExtent() const
static const G4double kInfinity
virtual G4VisExtent GetExtent() const
virtual void DescribeYourselfTo(G4VGraphicsScene &scene) const
G4TessellatedSolid & operator=(const G4TessellatedSolid &right)
virtual G4VSolid * Clone() const
std::set< G4VFacet * > fExtremeFacets
G4Voxelizer & GetVoxels()
G4int AllocatedMemoryWithoutVoxels()
EInside InsideNoVoxels(const G4ThreeVector &p) const
virtual G4Polyhedron * GetPolyhedron() const
virtual std::ostream & StreamInfo(std::ostream &os) const
G4double kCarToleranceHalf
void BoundingLimits(G4ThreeVector &pMin, G4ThreeVector &pMax) const
virtual EInside Inside(const G4ThreeVector &p) const
void PrecalculateInsides()
void SetSolidClosed(const G4bool t)
G4bool AddFacet(G4VFacet *aFacet)
virtual G4double GetCubicVolume()
G4double GetMinXExtent() const
G4bool operator()(const G4VertexInfo &l, const G4VertexInfo &r) const
void SetMaxVoxels(G4int max)
virtual G4double SafetyFromOutside(const G4ThreeVector &p, G4bool aAccurate=false) const
G4double DistanceToInCandidates(const std::vector< G4int > &candidates, const G4ThreeVector &aPoint, const G4ThreeVector &aDirection) const
G4double GetMaxZExtent() const
void SetMaxVoxels(G4int max)
G4double DistanceToOutNoVoxels(const G4ThreeVector &p, const G4ThreeVector &v, G4ThreeVector &aNormalVector, G4bool &aConvex, G4double aPstep=kInfinity) const
static G4bool CompareSortedVoxel(const std::pair< G4int, G4double > &l, const std::pair< G4int, G4double > &r)
virtual G4double SafetyFromInside(const G4ThreeVector &p, G4bool aAccurate=false) const
virtual G4double GetSurfaceArea()
G4double DistanceToOutCore(const G4ThreeVector &p, const G4ThreeVector &v, G4ThreeVector &aNormalVector, G4bool &aConvex, G4double aPstep=kInfinity) const
virtual G4GeometryType GetEntityType() const
virtual G4double DistanceToOut(const G4ThreeVector &p) const
G4int GetNumberOfFacets() const
void DisplayAllocatedMemory()
virtual ~G4TessellatedSolid()
virtual G4Polyhedron * CreatePolyhedron() const
G4bool OutsideOfExtent(const G4ThreeVector &p, G4double tolerance=0) const
virtual G4ThreeVector GetPointOnSurface() const
G4double GetMaxYExtent() const
virtual G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const
std::vector< G4ThreeVector > fRandir
std::vector< G4VFacet * > fFacets
EInside InsideVoxels(const G4ThreeVector &aPoint) const
virtual G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const
G4TessellatedSolid & operator+=(const G4TessellatedSolid &right)
G4double GetMinYExtent() const
virtual G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
G4double DistanceToInNoVoxels(const G4ThreeVector &p, const G4ThreeVector &v, G4double aPstep=kInfinity) const
virtual G4bool Normal(const G4ThreeVector &p, G4ThreeVector &n) const
G4bool fRebuildPolyhedron
std::vector< G4ThreeVector > fVertexList
G4double DistanceToInCore(const G4ThreeVector &p, const G4ThreeVector &v, G4double aPstep=kInfinity) const
void DistanceToOutCandidates(const std::vector< G4int > &candidates, const G4ThreeVector &aPoint, const G4ThreeVector &direction, G4double &minDist, G4ThreeVector &minNormal, G4int &minCandidate) const
G4double MinDistanceFacet(const G4ThreeVector &p, G4bool simple, G4VFacet *&facet) const
G4int SetAllUsingStack(const std::vector< G4int > &voxel, const std::vector< G4int > &max, G4bool status, G4SurfBits &checked)
G4GeometryType fGeometryType
G4Polyhedron * fpPolyhedron
std::set< G4VertexInfo, G4VertexComparator > fFacetList
G4VFacet * GetFacet(G4int i) const