77 #if !defined(G4GEOM_USE_UTESSELLATEDSOLID)
168 if (&ts ==
this)
return *
this;
222 for (
G4int i = 0; i <
n; ++i)
241 G4Exception(
"G4TessellatedSolid::AddFacet()",
"GeomSolids1002",
242 JustWarning,
"Attempt to add facets when solid is closed.");
247 set<G4VertexInfo,G4VertexComparator>::iterator begin
252 value.
mag2 = p.
x() + p.
y() + p.
z();
261 while (!found && it != end)
266 if ((found = (facet == aFacet)))
break;
268 if (dif > kCarTolerance3)
break;
275 while (!found && it != begin)
281 found = (facet == aFacet);
284 if (dif > kCarTolerance3)
break;
299 G4Exception(
"G4TessellatedSolid::AddFacet()",
"GeomSolids1002",
300 JustWarning,
"Attempt to add facet not properly defined.");
309 const std::vector<G4int> &
max,
312 vector<G4int> xyz = voxel;
313 stack<vector<G4int> >
pos;
316 G4int cc = 0, nz = 0;
318 vector<G4int> candidates;
336 for (
G4int i = 0; i <= 2; ++i)
338 if (xyz[i] < max[i] - 1)
366 vector<G4int> voxel(3), maxVoxels(3);
368 G4int size = maxVoxels[0] * maxVoxels[1] * maxVoxels[2];
375 for (voxel[2] = 0; voxel[2] < maxVoxels[2] - 1; ++voxel[2])
377 for (voxel[1] = 0; voxel[1] < maxVoxels[1] - 1; ++voxel[1])
379 for (voxel[0] = 0; voxel[0] < maxVoxels[0] - 1; ++voxel[0])
384 for (
G4int i = 0; i <= 2; ++i)
430 for (
G4int j = 0; j < size; ++j)
436 for (
G4int i=0; i < vsize; ++i)
462 set<G4VertexInfo,G4VertexComparator> vertexListSorted;
463 set<G4VertexInfo,G4VertexComparator>::iterator begin
464 = vertexListSorted.begin(), end = vertexListSorted.end(),
pos, it;
473 vector<G4int> newIndex(100);
475 for (
G4int k = 0; k < size; ++k)
484 value.
mag2 = p.
x() + p.
y() + p.
z();
490 pos = vertexListSorted.lower_bound(value);
497 found = (dif < kCarTolerance24);
499 dif = q.
x() + q.
y() + q.
z() - value.
mag2;
500 if (dif > kCarTolerance3)
break;
513 found = (dif < kCarTolerance24);
515 dif = value.
mag2 - (q.
x() + q.
y() + q.
z());
516 if (dif > kCarTolerance3)
break;
525 G4cout <<
"Adding new vertex #" << i <<
" of facet " << k
530 vertexListSorted.insert(value);
531 begin = vertexListSorted.begin();
532 end = vertexListSorted.end();
533 newIndex[i] = value.
id;
552 G4cout <<
"Vertex #" << i <<
" of facet " << k
553 <<
" found, redirecting to " <<
id <<
G4endl;
569 for (set<G4VertexInfo,G4VertexComparator>::iterator res=
570 vertexListSorted.begin(); res!=vertexListSorted.end(); ++res)
572 G4int id = (*res).id;
575 if (previousValue && (previousValue - 1
e-9 > mvalue))
576 G4cout <<
"Error in CreateVertexList: previousValue " << previousValue
577 <<
" is smaller than mvalue " << mvalue <<
G4endl;
578 previousValue = mvalue;
590 G4cout <<
"G4TessellatedSolid - Allocated memory without voxel overhead "
591 << without <<
"; with " << with <<
"; ratio: " << ratio <<
G4endl;
647 for (
G4int i = 0; i < size; ++i)
673 vector<G4int> startingVoxel(3);
676 const G4double dirTolerance = 1.0E-14;
678 const vector<G4int> &startingCandidates =
680 G4int limit = startingCandidates.size();
690 for(
G4int i = 0; i < limit; ++i)
692 G4int candidate = startingCandidates[i];
695 if (dist < minDist) minDist = dist;
722 G4bool nearParallel =
false;
742 vector<G4int> curVoxel(3);
743 curVoxel = startingVoxel;
751 const vector<G4int> &candidates =
754 if (
G4int candidatesCount = candidates.size())
756 for (
G4int i = 0 ; i < candidatesCount; ++i)
758 G4int candidate = candidates[i];
762 crossingO = facet.
Intersect(p,v,
true,distO,distFromSurfaceO,normalO);
763 crossingI = facet.
Intersect(p,v,
false,distI,distFromSurfaceI,normalI);
765 if (crossingO || crossingI)
769 nearParallel = (crossingO
770 && std::fabs(normalO.
dot(v))<dirTolerance)
771 || (crossingI && std::fabs(normalI.
dot(v))<dirTolerance);
774 if (crossingO && distO > 0.0 && distO < distOut)
776 if (crossingI && distI > 0.0 && distI < distIn)
782 if (nearParallel)
break;
798 currentPoint += direction * (shift + shiftBonus);
818 G4int oldprc = message.precision(16);
819 message <<
"Cannot determine whether point is inside or outside volume!"
825 <<
"p.x() = " << p.
x()/
mm <<
" mm" <<
G4endl
826 <<
"p.y() = " << p.
y()/
mm <<
" mm" <<
G4endl
827 <<
"p.z() = " << p.
z()/
mm <<
" mm";
828 message.precision(oldprc);
864 const G4double dirTolerance = 1.0E-14;
871 for (
G4int i = 0; i < size; ++i)
875 if (dist < minDist) minDist = dist;
911 for (
G4int i=0; i<nTry; ++i)
913 G4bool nearParallel =
false;
925 vector<G4VFacet*>::const_iterator
f =
fFacets.begin();
934 crossingO = ((*f)->Intersect(p,v,
true,distO,distFromSurfaceO,normalO));
935 crossingI = ((*f)->Intersect(p,v,
false,distI,distFromSurfaceI,normalI));
936 if (crossingO || crossingI)
938 nearParallel = (crossingO && std::fabs(normalO.
dot(v))<dirTolerance)
939 || (crossingI && std::fabs(normalI.
dot(v))<dirTolerance);
942 if (crossingO && distO > 0.0 && distO < distOut) distOut = distO;
943 if (crossingI && distI > 0.0 && distI < distIn) distIn = distI;
946 }
while (!nearParallel && ++f!=
fFacets.end());
958 G4int oldprc = message.precision(16);
959 message <<
"Cannot determine whether point is inside or outside volume!"
965 <<
"p.x() = " << p.
x()/
mm <<
" mm" <<
G4endl
966 <<
"p.y() = " << p.
y()/
mm <<
" mm" <<
G4endl
967 <<
"p.z() = " << p.
z()/
mm <<
" mm";
968 message.precision(oldprc);
990 if (i == 0) location = locationprime;
1009 vector<G4int> curVoxel(3);
1014 if (
G4int limit = candidates.size())
1017 for(
G4int i = 0 ; i < limit ; ++i)
1019 G4int candidate = candidates[i];
1022 if (dist < minDist) minDist = dist;
1036 for (
G4int i = 0; i < size; ++i)
1057 message <<
"Point p is not on surface !?" <<
G4endl
1058 <<
" No facets found for point: " << p <<
" !" <<
G4endl
1059 <<
" Returning approximated value for normal.";
1061 G4Exception(
"G4TessellatedSolid::SurfaceNormal(p)",
1093 G4int oldprc = message.precision(16) ;
1094 message <<
"Point p is already inside!?" <<
G4endl
1096 <<
" p.x() = " << p.
x()/
mm <<
" mm" <<
G4endl
1097 <<
" p.y() = " << p.
y()/
mm <<
" mm" <<
G4endl
1098 <<
" p.z() = " << p.
z()/
mm <<
" mm" <<
G4endl
1100 message.precision(oldprc) ;
1101 G4Exception(
"G4TriangularFacet::DistanceToIn(p,v)",
1107 for (
G4int i = 0; i < size; ++i)
1110 if (facet.
Intersect(p,v,
false,dist,distFromSurface,normal))
1161 G4int oldprc = message.precision(16) ;
1162 message <<
"Point p is already outside!?" <<
G4endl
1164 <<
" p.x() = " << p.
x()/
mm <<
" mm" <<
G4endl
1165 <<
" p.y() = " << p.
y()/
mm <<
" mm" <<
G4endl
1166 <<
" p.z() = " << p.
z()/
mm <<
" mm" <<
G4endl
1168 message.precision(oldprc) ;
1169 G4Exception(
"G4TriangularFacet::DistanceToOut(p)",
1174 G4bool isExtreme =
false;
1176 for (
G4int i = 0; i < size; ++i)
1179 if (facet.
Intersect(p,v,
true,dist,distFromSurface,normal))
1191 if (dist >= 0.0 && dist < minDist)
1201 aNormalVector = minNormal;
1202 aConvex = isExtreme;
1209 Normal(p, aNormalVector);
1221 G4int &minCandidate )
const
1223 G4int candidatesCount = candidates.size();
1228 for (
G4int i = 0 ; i < candidatesCount; ++i)
1230 G4int candidate = candidates[i];
1232 if (facet.
Intersect(aPoint,direction,
true,dist,distFromSurface,normal))
1241 minCandidate = candidate;
1244 if (dist >= 0.0 && dist < minDist)
1248 minCandidate = candidate;
1272 vector<G4int> curVoxel(3);
1279 const vector<G4int> *old = 0;
1281 G4int minCandidate = -1;
1285 if (old == &candidates)
1287 if (old != &candidates && candidates.size())
1290 aNormalVector, minCandidate);
1291 if (minDistance <= totalShift)
break;
1297 totalShift += shift;
1298 if (minDistance <= totalShift)
break;
1300 currentPoint += direction * (shift + shiftBonus);
1306 if (minCandidate < 0)
1311 Normal(aPoint, aNormalVector);
1334 G4int candidatesCount = candidates.size();
1340 for (
G4int i = 0 ; i < candidatesCount; ++i)
1342 G4int candidate = candidates[i];
1344 if (facet.
Intersect(aPoint,direction,
false,dist,distFromSurface,normal))
1354 && (dist >= 0.0) && (dist < minDistance))
1393 currentPoint += direction * (shift + shiftBonus);
1398 vector<G4int> curVoxel(3);
1404 if (candidates.size())
1407 if (minDistance > distance) minDistance = distance;
1408 if (distance < totalShift)
break;
1414 totalShift += shift;
1415 if (minDistance < totalShift)
break;
1417 currentPoint += direction * (shift + shiftBonus);
1433 const std::pair<G4int, G4double> &r)
1435 return l.second < r.second;
1448 vector<pair<G4int, G4double> > voxelsSorted(size);
1450 pair<G4int, G4double>
info;
1452 for (
G4int i = 0; i < size; ++i)
1459 info.second = safety;
1460 voxelsSorted[i] =
info;
1463 std::sort(voxelsSorted.begin(), voxelsSorted.end(),
1466 for (
G4int i = 0; i < size; ++i)
1468 const pair<G4int,G4double> &inf = voxelsSorted[i];
1470 if (dist > minDist)
break;
1473 G4int csize = candidates.size();
1474 for (
G4int j = 0; j < csize; ++j)
1476 G4int candidate = candidates[j];
1478 dist = simple ? facet.
Distance(p,minDist)
1499 G4int oldprc = message.precision(16) ;
1500 message <<
"Point p is already inside!?" <<
G4endl
1502 <<
"p.x() = " << p.
x()/
mm <<
" mm" <<
G4endl
1503 <<
"p.y() = " << p.
y()/
mm <<
" mm" <<
G4endl
1504 <<
"p.z() = " << p.
z()/
mm <<
" mm" <<
G4endl
1506 message.precision(oldprc) ;
1521 vector<G4int> startingVoxel(3);
1538 for (
G4int i = 0; i < size; ++i)
1542 if (dist < minDist) minDist = dist;
1557 G4int oldprc = message.precision(16) ;
1558 message <<
"Point p is already outside!?" <<
G4endl
1560 <<
"p.x() = " << p.
x()/
mm <<
" mm" <<
G4endl
1561 <<
"p.y() = " << p.
y()/
mm <<
" mm" <<
G4endl
1562 <<
"p.z() = " << p.
z()/
mm <<
" mm" <<
G4endl
1564 message.precision(oldprc) ;
1565 G4Exception(
"G4TriangularFacet::DistanceToOut(p)",
1584 for (
G4int i = 0; i < size; ++i)
1588 if (dist < minDist) minDist = dist;
1615 for (
G4int i = 0; i < size; ++i)
1617 os <<
"FACET # = " << i + 1 <<
G4endl;
1693 message <<
"Invalid response from facet in solid '" <<
GetName() <<
"',"
1695 <<
"at point: " << p <<
"and direction: " << v;
1696 G4Exception(
"G4TessellatedSolid::DistanceToIn(p,v)",
1755 message <<
"Invalid response from facet in solid '" <<
GetName() <<
"',"
1757 <<
"at point: " << p <<
"and direction: " << v;
1758 G4Exception(
"G4TessellatedSolid::DistanceToOut(p,v,..)",
1781 for (G4ThreeVectorList::const_iterator v=
fVertexList.begin();
1788 for (
G4int i = 0; i < size; ++i)
1794 else if (n == 3) v[3] = 0;
1795 for (
G4int j=0; j<
n; ++j)
1800 polyhedron->
AddFacet(v[0],v[1],v[2],v[3]);
1839 if (pMin.
x() >= pMax.
x() || pMin.
y() >= pMax.
y() || pMin.
z() >= pMax.
z())
1842 message <<
"Bad bounding box (min >= max) for solid: "
1844 <<
"\npMin = " << pMin
1845 <<
"\npMax = " << pMax;
1846 G4Exception(
"G4TessellatedSolid::BoundingLimits()",
1869 #ifdef G4BBOX_EXTENT
1870 if (
true)
return bbox.
CalculateExtent(pAxis,pVoxelLimit,pTransform,pMin,pMax);
1874 return exist = (pMin < pMax) ?
true :
false;
1885 std::vector<const G4ThreeVectorList *> pyramid(2);
1888 apex[0] = (bmin+bmax)*0.5;
1905 if (!benv.
CalculateExtent(pAxis,pVoxelLimit,pTransform,emin,emax))
continue;
1906 if (emin < pMin) pMin = emin;
1907 if (emax > pMax) pMax =
emax;
1908 if (eminlim > pMin && emaxlim < pMax)
break;
1910 return (pMin < pMax);
1975 for (
G4int i = 0; i < size; ++i)
1993 for (
G4int i = 0; i < size; ++i)
2008 return fFacets[i]->GetPointOnFace();
2024 G4ThreeVector(-0.9577428892113370, 0.2732676269591740, 0.0897405271949221);
2026 G4ThreeVector(-0.8331264504940770,-0.5162067214954600,-0.1985722492445700);
2028 G4ThreeVector(-0.1516671651108820, 0.9666292616127460, 0.2064580868390110);
2030 G4ThreeVector( 0.6570250350323190,-0.6944539025883300, 0.2933460081893360);
2032 G4ThreeVector(-0.4820456281280320,-0.6331060000098690,-0.6056474264406270);
2034 G4ThreeVector( 0.7629032554236800 , 0.1016854697539910,-0.6384658864065180);
2036 G4ThreeVector( 0.7689540409061150, 0.5034929891988220, 0.3939600142169160);
2038 G4ThreeVector( 0.5765188359255740, 0.5997271636278330,-0.5549354566343150);
2040 G4ThreeVector( 0.6660632777862070,-0.6362809868288380, 0.3892379937580790);
2042 G4ThreeVector( 0.3824415020414780, 0.6541792713761380,-0.6525243125110690);
2044 G4ThreeVector(-0.5107726564526760, 0.6020905056811610, 0.6136760679616570);
2046 G4ThreeVector( 0.7459135439578050, 0.6618796061649330, 0.0743530220183488);
2048 G4ThreeVector( 0.1536405855311580, 0.8117477913978260,-0.5634359711967240);
2050 G4ThreeVector( 0.0744395301705579,-0.8707110101772920,-0.4861286795736560);
2052 G4ThreeVector(-0.1665874645185400, 0.6018553940549240,-0.7810369397872780);
2054 G4ThreeVector( 0.7766902003633100, 0.6014617505959970,-0.1870724331097450);
2056 G4ThreeVector(-0.8710128685847430,-0.1434320216603030,-0.4698551243971010);
2058 G4ThreeVector( 0.8901082092766820,-0.4388411398893870, 0.1229871120030100);
2060 G4ThreeVector(-0.6430417431544370,-0.3295938228697690, 0.6912779675984150);
2062 G4ThreeVector( 0.6331124368380410, 0.6306211461665000, 0.4488714875425340);
2076 for (
G4int i = 0; i < limit; i++)
2082 std::set<G4VFacet *>::const_iterator beg, end, it;
2085 for (it = beg; it != end; it++)
2100 size += sizeInsides + sizeVoxels;
G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimits, const G4Transform3D &pTransform3D, G4double &pMin, G4double &pMax) const
G4int GetPointIndex(const G4ThreeVector &p) const
void CopyObjects(const G4TessellatedSolid &s)
G4double GetMinZExtent() const
virtual G4int GetVertexIndex(G4int i) const =0
void set(double x, double y, double z)
const XML_Char XML_Encoding * info
T max(const T t1, const T t2)
brief Return the largest of the two arguments
virtual G4ThreeVector GetSurfaceNormal() const =0
const G4SurfBits & Empty() const
G4bool GetSolidClosed() const
G4bool IsInside(const G4ThreeVector &p) const
CLHEP::Hep3Vector G4ThreeVector
const std::vector< G4int > & GetVoxelBoxCandidates(G4int i) const
void ResetBitNumber(unsigned int bitnumber)
void Voxelize(std::vector< G4VSolid * > &solids, std::vector< G4Transform3D > &transforms)
G4double GetMaxExtent(const EAxis pAxis) const
std::vector< ExP01TrackerHit * > a
unsigned int GetNbits() const
G4bool Contains(const G4ThreeVector &point) const
virtual G4double GetArea() const =0
static const G4double pos
G4double GetMaxXExtent() const
virtual void AddSolid(const G4Box &)=0
static const G4double kInfinity
G4bool IsEmpty(G4int index) const
void AddFacet(const G4int iv1, const G4int iv2, const G4int iv3, const G4int iv4=0)
void AddVertex(const G4ThreeVector &v)
virtual G4VFacet * GetClone()=0
virtual G4VisExtent GetExtent() const
static constexpr double mm
virtual void DescribeYourselfTo(G4VGraphicsScene &scene) const
G4TessellatedSolid & operator=(const G4TessellatedSolid &right)
virtual G4VSolid * Clone() const
std::set< G4VFacet * > fExtremeFacets
unsigned int GetNbytes() const
std::ostream & StreamInfo(std::ostream &os) const
void message(RunManager *runmanager)
G4int AllocatedMemoryWithoutVoxels()
const std::vector< G4int > & GetCandidates(std::vector< G4int > &curVoxel) const
EInside InsideNoVoxels(const G4ThreeVector &p) const
const std::vector< G4double > & GetBoundary(G4int index) const
static double normal(HepRandomEngine *eptr)
double dot(const Hep3Vector &) const
virtual G4Polyhedron * GetPolyhedron() const
virtual std::ostream & StreamInfo(std::ostream &os) const
static const G4double emax
G4double kCarToleranceHalf
long long GetCountOfVoxels() const
virtual void SetVertexIndex(G4int i, G4int j)=0
void BoundingLimits(G4ThreeVector &pMin, G4ThreeVector &pMax) const
virtual G4ThreeVector GetVertex(G4int i) const =0
virtual G4double Distance(const G4ThreeVector &, G4double)=0
virtual EInside Inside(const G4ThreeVector &p) const
const XML_Char int const XML_Char int const XML_Char * base
void PrecalculateInsides()
void SetSolidClosed(const G4bool t)
G4bool AddFacet(G4VFacet *aFacet)
virtual G4double GetCubicVolume()
G4VSolid & operator=(const G4VSolid &rhs)
G4double GetMinXExtent() const
void SetMaxVoxels(G4int max)
G4bool BoundingBoxVsVoxelLimits(const EAxis pAxis, const G4VoxelLimits &pVoxelLimits, const G4Transform3D &pTransform3D, G4double &pMin, G4double &pMax) const
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 DistanceToFirst(const G4ThreeVector &point, const G4ThreeVector &direction) const
std::vector< G4ThreeVector > G4ThreeVectorList
#define G4MUTEX_INITIALIZER
G4double GetMaxZExtent() const
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
G4int GetMaxVoxels(G4ThreeVector &ratioOfReduction)
const XML_Char int const XML_Char * value
G4double GetMinExtent(const EAxis pAxis) 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 G4bool IsDefined() const =0
virtual ~G4TessellatedSolid()
G4int GetVoxelBoxesSize() const
virtual G4int GetNumberOfVertices() const =0
static G4double MinDistanceToBox(const G4ThreeVector &aPoint, const G4ThreeVector &f)
virtual G4Polyhedron * CreatePolyhedron() const
ThreeVector shoot(const G4int Ap, const G4int Af)
G4bool OutsideOfExtent(const G4ThreeVector &p, G4double tolerance=0) const
static G4int GetNumberOfRotationSteps()
virtual G4ThreeVector GetPointOnSurface() const
G4double GetMaxYExtent() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
virtual G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const
G4double DistanceToNext(const G4ThreeVector &point, const G4ThreeVector &direction, std::vector< G4int > &curVoxel) const
std::vector< G4ThreeVector > fRandir
G4int GetNumberOfRotationStepsAtTimeOfCreation() const
std::vector< G4VFacet * > fFacets
virtual G4ThreeVector GetCircumcentre() const =0
G4GLOB_DLL std::ostream G4cout
EInside InsideVoxels(const G4ThreeVector &aPoint) const
virtual G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const
G4TessellatedSolid & operator+=(const G4TessellatedSolid &right)
virtual G4bool Intersect(const G4ThreeVector &, const G4ThreeVector &, const G4bool, G4double &, G4double &, G4ThreeVector &)=0
G4bool UpdateCurrentVoxel(const G4ThreeVector &point, const G4ThreeVector &direction, std::vector< G4int > &curVoxel) const
void SetBitNumber(unsigned int bitnumber, G4bool value=true)
G4double DistanceToBoundingBox(const G4ThreeVector &point) const
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
void GetVoxel(std::vector< G4int > &curVoxel, const G4ThreeVector &point) const
virtual G4bool Normal(const G4ThreeVector &p, G4ThreeVector &n) const
G4int GetVoxelsIndex(G4int x, G4int y, G4int z) const
virtual void SetVertices(std::vector< G4ThreeVector > *vertices)=0
const G4VoxelBox & GetVoxelBox(G4int i) const
G4bool fRebuildPolyhedron
std::vector< G4ThreeVector > fVertexList
G4double DistanceToInCore(const G4ThreeVector &p, const G4ThreeVector &v, G4double aPstep=kInfinity) const
virtual G4int AllocatedMemory()=0
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