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