74 const std::vector<G4TwoVector>& vertices )
76 fRebuildPolyhedron(false),
93 G4String errorDescription =
"InvalidSetup in \" ";
94 errorDescription +=
name;
95 errorDescription +=
"\"";
103 G4Exception(
"G4GenericTrap::G4GenericTrap()",
"GeomSolids0002",
111 G4Exception(
"G4GenericTrap::G4GenericTrap()",
"GeomSolids0002",
129 for (
G4int j=0; j < 2; j++)
131 for (
G4int i=1; i<4; ++i)
137 std::ostringstream message;
138 message <<
"Length segment is too small." <<
G4endl
139 <<
"Distance between " <<
fVertices[k-1] <<
" and "
140 <<
fVertices[k] <<
" is only " << length <<
" mm !";
141 G4Exception(
"G4GenericTrap::G4GenericTrap()",
"GeomSolids1001",
142 JustWarning, message,
"Vertices will be collapsed.");
169 fRebuildPolyhedron(false),
171 halfCarTolerance(0.),
175 fTessellatedSolid(0),
198 fRebuildPolyhedron(false), fpPolyhedron(0),
199 halfCarTolerance(rhs.halfCarTolerance),
200 fDz(rhs.fDz), fVertices(rhs.fVertices),
201 fIsTwisted(rhs.fIsTwisted), fTessellatedSolid(0),
202 fMinBBoxVector(rhs.fMinBBoxVector), fMaxBBoxVector(rhs.fMaxBBoxVector),
203 fVisSubdivisions(rhs.fVisSubdivisions),
204 fSurfaceArea(rhs.fSurfaceArea), fCubicVolume(rhs.fCubicVolume)
206 for (
size_t i=0; i<4; ++i) {
fTwist[i] = rhs.
fTwist[i]; }
219 if (
this == &rhs) {
return *
this; }
234 for (
size_t i=0; i<4; ++i) {
fTwist[i] = rhs.
fTwist[i]; }
249 const std::vector<G4TwoVector>& poly)
const
255 for (
G4int i = 0; i < 4; i++)
259 cross = (p.x()-poly[i].x())*(poly[j].y()-poly[i].y())-
260 (p.y()-poly[i].y())*(poly[j].x()-poly[i].x());
262 len2=(poly[i]-poly[j]).mag2();
274 if (poly[j].x() > poly[i].x())
283 if ( p.x() > poly[iMax].x()+halfCarTolerance
289 if (poly[j].y() > poly[i].y())
299 if ( p.y() > poly[iMax].y()+halfCarTolerance
305 if ( poly[iMax].x() != poly[iMin].x() )
307 test = (p.x()-poly[iMin].x())/(poly[iMax].x()-poly[iMin].x())
308 * (poly[iMax].y()-poly[iMin].y())+poly[iMin].y();
317 if( (test>=(poly[iMin].y()-halfCarTolerance))
318 && (test<=(poly[iMax].y()+halfCarTolerance)) )
327 else if (cross<0.) {
return kOutside; }
339 if ( (std::fabs(p.x()-poly[0].x())+std::fabs(p.y()-poly[0].y())) >
halfCarTolerance )
361 std::vector<G4TwoVector> xy;
368 for (
G4int i=0; i<4; i++)
398 p0, p1, p2, r1, r2, r3, r4;
399 G4int noSurfaces = 0;
403 distz =
fDz-std::fabs(p.z());
420 std:: vector<G4TwoVector> vertices;
422 for (
G4int i=0; i<4; i++)
429 for (
G4int q=0; q<4; q++)
440 p2=
G4ThreeVector(vertices[(q+1)%4].x(),vertices[(q+1)%4].y(),p.z());
455 lnorm = (p1-p0).cross(p2-p0);
456 lnorm = lnorm.unit();
457 if(zPlusSide) { lnorm=-lnorm; }
466 G4double proj=(p-p0).dot(p2-p0)/normP;
467 if(proj<0) { proj=0; }
468 if(proj>normP) { proj=normP; }
474 r1=r1+proj*(r2-r1)/normP;
475 r3=r3+proj*(r4-r3)/normP;
477 r4=r2.cross(p2-p0); r4=r4.unit();
482 distxy=std::fabs((p0-p).dot(lnorm));
489 sumnorm=sumnorm+lnorm;
503 if ( noSurfaces == 0 )
505 G4Exception(
"G4GenericTrap::SurfaceNormal(p)",
"GeomSolids1002",
510 else if ( noSurfaces == 1 ) { sumnorm = sumnorm; }
511 else { sumnorm = sumnorm.unit(); }
519 const G4int ipl )
const
569 lnorm=-(p1-p0).cross(p2-p0);
571 else { lnorm=lnorm.unit(); }
580 G4double proj=(p-p0).dot(p2-p0)/normP;
581 if (proj<0) { proj=0; }
582 if (proj>normP) { proj=normP; }
588 r1=r1+proj*(r2-r1)/normP;
589 r3=r3+proj*(r4-r3)/normP;
591 r4=r2.cross(p2-p0);r4=r4.unit();
603 const G4int ipl)
const
639 G4double a = (dtx*v.y()-dty*v.x()+(tx1*ty2-tx2*ty1)*v.z())*v.z();
640 G4double b = dxs*v.y()-dys*v.x()+(dtx*p.y()-dty*p.x()+ty2*xs1-ty1*xs2
641 + tx1*ys2-tx2*ys1)*v.z();
642 G4double c=dxs*p.y()-dys*p.x()+xs1*ys2-xs2*ys1;
666 if (std::fabs(zi)<
fDz)
674 zi = (xp-x1)*(xp-x2)+(yp-y1)*(yp-y2);
683 if (a>0) { q=0.5*(-b-std::sqrt(d))/a; }
684 else { q=0.5*(-b+std::sqrt(d))/a; }
698 if (a>0) { q=0.5*(-b+std::sqrt(d))/a; }
699 else { q=0.5*(-b-std::sqrt(d))/a; }
706 if (std::fabs(zi)<
fDz)
714 zi = (xp-x1)*(xp-x2)+(yp-y1)*(yp-y2);
718 if (a>0) { q=0.5*(-b+std::sqrt(d))/a; }
719 else { q=0.5*(-b-std::sqrt(d))/a; }
733 if (a>0) { q=0.5*(-b-std::sqrt(d))/a; }
734 else { q=0.5*(-b+std::sqrt(d))/a; }
741 if (std::fabs(zi)<
fDz)
749 zi = (xp-x1)*(xp-x2)+(yp-y1)*(yp-y2);
790 dist[4] = (
fDz-p.z())/v.z();
794 dist[4] = (-
fDz-p.z())/v.z();
806 if (n.dot(v)<0) { dist[4]=0.; }
817 if (dist[i] < distmin) { distmin = dist[i]; }
839 if(safz<0) { safz=0; }
845 for (iseg=0; iseg<4; iseg++)
848 if (safxy>safe) { safe=safxy; }
868 safe = (p-p1).dot(norm);
905 G4double c=(xb-xa)*(yc-ya)-(xc-xa)*(yb-ya);
911 t=-(a*p.x()+b*p.y()+c*p.z()+d)/t;
945 G4bool lateral_cross =
false;
948 if (calcNorm) { *validNorm=
true; }
952 distmin=(-
fDz-p.z())/v.z();
959 distmin = (
fDz-p.z())/v.z();
969 for (
G4int ipl=0; ipl<4; ipl++)
985 if ( (q>=0) && (q<distmin) )
1006 G4double a = (dtx*v.y()-dty*v.x()+(tx1*ty2-tx2*ty1)*v.z())*v.z();
1007 G4double b = dxs*v.y()-dys*v.x()+(dtx*p.y()-dty*p.x()+ty2*xs1-ty1*xs2
1008 + tx1*ys2-tx2*ys1)*v.z();
1009 G4double c=dxs*p.y()-dys*p.x()+xs1*ys2-xs2*ys1;
1034 if (a > 0) { q=0.5*(-b-std::sqrt(d))/a; }
1035 else { q=0.5*(-b+std::sqrt(d))/a; }
1047 if (a > 0) { q=0.5*(-b+std::sqrt(d))/a; }
1048 else { q=0.5*(-b-std::sqrt(d))/a; }
1052 lateral_cross =
true;
1059 lateral_cross =
true;
1065 if (a > 0) { q=0.5*(-b+std::sqrt(d))/a; }
1066 else { q=0.5*(-b-std::sqrt(d))/a; }
1076 if (a > 0) { q=0.5*(-b-std::sqrt(d))/a; }
1077 else { q=0.5*(-b+std::sqrt(d))/a; }
1081 lateral_cross =
true;
1088 lateral_cross =
true;
1102 if (v.z()>0.) { i=4; }
1103 std::vector<G4TwoVector> xy;
1119 if(v.z()>0) {side=
kPZ;}
1149 std::ostringstream message;
1150 G4int oldprc = message.precision(16);
1151 message <<
"Undefined side for valid surface normal to solid." <<
G4endl
1153 <<
" p.x() = " << p.x()/
mm <<
" mm" <<
G4endl
1154 <<
" p.y() = " << p.y()/
mm <<
" mm" <<
G4endl
1155 <<
" p.z() = " << p.z()/
mm <<
" mm" <<
G4endl
1156 <<
"Direction:" <<
G4endl
1157 <<
" v.x() = " << v.x() <<
G4endl
1158 <<
" v.y() = " << v.y() <<
G4endl
1159 <<
" v.z() = " << v.z() <<
G4endl
1160 <<
"Proposed distance :" <<
G4endl
1161 <<
" distmin = " << distmin/
mm <<
" mm";
1162 message.precision(oldprc);
1163 G4Exception(
"G4GenericTrap::DistanceToOut(p,v,..)",
1187 if (safz<0) { safz = 0; }
1192 for (
G4int iseg=0; iseg<4; iseg++)
1195 if (safxy < safe) { safe = safxy; }
1212 pTransform, pMin, pMax);
1221 Dx = 0.5*(maxVec.x()- minVec.x());
1222 Dy = 0.5*(maxVec.y()- minVec.y());
1329 G4bool existsAfterClip=
false;
1344 existsAfterClip=
true;
1365 existsAfterClip=
true;
1371 return existsAfterClip;
1394 vertices->reserve(8);
1415 G4Exception(
"G4GenericTrap::CreateRotatedVertices()",
"FatalError",
1439 G4int oldprc = os.precision(16);
1440 os <<
"-----------------------------------------------------------\n"
1441 <<
" *** Dump for solid - " <<
GetName() <<
" *** \n"
1442 <<
" =================================================== \n"
1444 <<
" half length Z: " <<
fDz/
mm <<
" mm \n"
1445 <<
" list of vertices:\n";
1449 os << std::setw(5) <<
"#" << i
1453 os.precision(oldprc);
1472 G4double rand,area,chose,cf,lambda0,lambda1,alfa,beta,zp;
1475 std::vector<G4ThreeVector> vertices;
1476 for (
G4int i=0; i<4;i++)
1480 for (
G4int i=4; i<8;i++)
1488 vertices[2],vertices[3]);
1490 vertices[5],vertices[4]);
1492 vertices[4],vertices[7]);
1494 vertices[7],vertices[6]);
1496 vertices[5],vertices[6]);
1498 vertices[6],vertices[7]);
1500 area = Surface0+Surface1+Surface2+Surface3+Surface4+Surface5;
1503 if ( ( chose < Surface0)
1504 || ( chose > (Surface0+Surface1+Surface2+Surface3+Surface4)) )
1508 if(chose < Surface0)
1523 lambda0=alfa-lambda1;
1526 v = u+lambda0*v+lambda1*w;
1530 if (chose < Surface0+Surface1) { ipl=0; }
1531 else if (chose < Surface0+Surface1+Surface2) { ipl=1; }
1532 else if (chose < Surface0+Surface1+Surface2+Surface3) { ipl=2; }
1536 cf = 0.5*(fDz-zp)/fDz;
1562 std::vector<G4ThreeVector> vertices;
1563 for (
G4int i=0; i<4;i++)
1567 for (
G4int i=4; i<8;i++)
1575 vertices[2],vertices[3]);
1577 vertices[5],vertices[4]);
1579 vertices[4],vertices[7]);
1581 vertices[7],vertices[6]);
1583 vertices[5],vertices[6]);
1585 vertices[6],vertices[7]);
1592 + fSurface3+fSurface4+fSurface5;
1620 aOne = 0.5*Area.mag();
1623 aTwo = 0.5*Area.mag();
1639 for (
G4int i=0; i<4; i++ )
1643 if ( (dx1 == 0) && (dy1 == 0) ) {
continue; }
1648 if ( dx2 == 0 && dy2 == 0 ) {
continue; }
1649 G4double twist_angle = std::fabs(dy1*dx2 - dx1*dy2);
1656 twist_angle = std::acos( (dx1*dx2 + dy1*dy2)
1657 / (std::sqrt(dx1*dx1+dy1*dy1)
1658 * std::sqrt(dx2*dx2+dy2*dy2)) );
1662 std::ostringstream message;
1663 message <<
"Twisted Angle is bigger than 90 degrees - " <<
GetName()
1665 <<
" Potential problem of malformed Solid !" <<
G4endl
1666 <<
" TwistANGLE = " << twist_angle
1667 <<
"*rad for lateral plane N= " << i;
1668 G4Exception(
"G4GenericTrap::ComputeIsTwisted()",
"GeomSolids1002",
1683 G4bool clockwise_order=
true;
1688 for (
G4int i=0; i<4; i++)
1691 sum1 += vertices[i].x()*vertices[j].y() - vertices[j].x()*vertices[i].y();
1692 sum2 += vertices[i+4].x()*vertices[j+4].y()
1693 - vertices[j+4].x()*vertices[i+4].y();
1697 std::ostringstream message;
1698 message <<
"Lower/upper faces defined with opposite clockwise - "
1700 G4Exception(
"G4GenericTrap::CheckOrder()",
"GeomSolids0002",
1704 if ((sum1 > 0.)||(sum2 > 0.))
1706 std::ostringstream message;
1707 message <<
"Vertices must be defined in clockwise XY planes - "
1709 G4Exception(
"G4GenericTrap::CheckOrder()",
"GeomSolids1001",
1711 clockwise_order =
false;
1716 G4bool illegal_cross =
false;
1718 vertices[1],vertices[5]);
1723 vertices[3],vertices[7]);
1729 vertices[2],vertices[3]);
1734 vertices[1],vertices[2]);
1739 vertices[6],vertices[7]);
1744 vertices[5],vertices[6]);
1749 std::ostringstream message;
1750 message <<
"Malformed polygone with opposite sides - " <<
GetName();
1751 G4Exception(
"G4GenericTrap::CheckOrderAndSetup()",
1754 return clockwise_order;
1763 std::vector<G4ThreeVector> oldVertices(vertices);
1765 for (
G4int i=0; i <
G4int(oldVertices.size()); ++i )
1767 vertices[i] = oldVertices[oldVertices.size()-1-i];
1789 a1 = (b.x()*a.y()-a.x()*b.y())/dx1;
1794 a2 = (d.x()*c.y()-c.x()*d.y())/dx2;
1797 if (stand1 && stand2)
1808 || ((b.y()-c.y())*(b.y()-d.y())<-
fgkTolerance) ) {
return true; }
1842 || ((b.x()-c.x())*(b.x()-d.x())<-
fgkTolerance) ) {
return true; }
1853 G4double check = (xm-a.x())*(xm-b.x())+(ym-a.y())*(ym-b.y());
1855 check = (xm-c.x())*(xm-d.x())+(ym-c.y())*(ym-d.y());
1889 (std::fabs((p4-p3).y()) <
kCarTolerance ) ) {
return false; }
1893 det = dv.x()*v1.y()*v2.z()+dv.y()*v1.z()*v2.x()
1894 - dv.x()*v1.z()*v2.y()-dv.y()*v1.x()*v2.z();
1898 temp1 = v1.cross(v2);
1899 temp2 = (p2-p1).cross(v2);
1900 if (temp1.dot(temp2) < 0) {
return false; }
1904 q = ((dv).cross(v2)).mag()/q;
1921 if ( (fromVertices[ind1] == fromVertices[ind2]) ||
1922 (fromVertices[ind2] == fromVertices[ind3]) ||
1923 (fromVertices[ind1] == fromVertices[ind3]) ) {
return 0; }
1925 std::vector<G4ThreeVector> vertices;
1926 vertices.push_back(fromVertices[ind1]);
1927 vertices.push_back(fromVertices[ind2]);
1928 vertices.push_back(fromVertices[ind3]);
1932 G4ThreeVector cross=(vertices[1]-vertices[0]).cross(vertices[2]-vertices[1]);
1934 if ( cross.z() > 0.0 )
1938 std::ostringstream message;
1939 message <<
"Vertices in wrong order - " <<
GetName();
1940 G4Exception(
"G4GenericTrap::MakeDownFacet",
"GeomSolids0002",
1958 if ( (fromVertices[ind1] == fromVertices[ind2]) ||
1959 (fromVertices[ind2] == fromVertices[ind3]) ||
1960 (fromVertices[ind1] == fromVertices[ind3]) ) {
return 0; }
1962 std::vector<G4ThreeVector> vertices;
1963 vertices.push_back(fromVertices[ind1]);
1964 vertices.push_back(fromVertices[ind2]);
1965 vertices.push_back(fromVertices[ind3]);
1969 G4ThreeVector cross=(vertices[1]-vertices[0]).cross(vertices[2]-vertices[1]);
1971 if ( cross.z() < 0.0 )
1975 std::ostringstream message;
1976 message <<
"Vertices in wrong order - " <<
GetName();
1977 G4Exception(
"G4GenericTrap::MakeUpFacet",
"GeomSolids0002",
1995 if ( (downVertex0 == downVertex1) && (upVertex0 == upVertex1) )
2000 if ( downVertex0 == downVertex1 )
2005 if ( upVertex0 == upVertex1 )
2021 std::vector<G4ThreeVector> downVertices;
2022 for (
G4int i=0; i<nv; i++ )
2028 std::vector<G4ThreeVector> upVertices;
2029 for (
G4int i=nv; i<2*nv; i++ )
2038 = (downVertices[1]-downVertices[0]).cross(downVertices[2]-downVertices[1]);
2040 = (upVertices[1]-upVertices[0]).cross(upVertices[2]-upVertices[1]);
2041 if ( (cross.z() > 0.0) || (cross1.z() > 0.0) )
2051 if (facet) { tessellatedSolid->
AddFacet( facet ); }
2053 if (facet) { tessellatedSolid->
AddFacet( facet ); }
2055 if (facet) { tessellatedSolid->
AddFacet( facet ); }
2057 if (facet) { tessellatedSolid->
AddFacet( facet ); }
2061 for (
G4int i = 0; i < nv; ++i )
2063 G4int j = (i+1) % nv;
2065 upVertices[i], upVertices[j]);
2067 if ( facet ) { tessellatedSolid->
AddFacet( facet ); }
2072 return tessellatedSolid;
2153 Dx = 0.5*(maxVec.x()- minVec.x());
2154 Dy = 0.5*(maxVec.y()- minVec.y());
2175 size_t nVertices, nFacets;
2177 G4int subdivisions=0;
2200 Dx = 0.5*(maxVec.x()- minVec.y());
2201 Dy = 0.5*(maxVec.y()- minVec.y());
2202 if (Dy > Dx) { Dx=Dy; }
2204 subdivisions=8*
G4int(maxTwist/(Dx*Dx*Dx)*
fDz);
2205 if (subdivisions<4) { subdivisions=4; }
2206 if (subdivisions>30) { subdivisions=30; }
2209 G4int sub4=4*subdivisions;
2210 nVertices = 8+subdivisions*4;
2211 nFacets = 6+subdivisions*4;
2222 for( i=0;i<subdivisions;i++)
2224 for(
G4int j=0;j<4;j++)
2239 for (i=0;i<subdivisions+1;i++)
2242 polyhedron->
AddFacet(5+is,8+is,4+is,1+is);
2243 polyhedron->
AddFacet(8+is,7+is,3+is,4+is);
2244 polyhedron->
AddFacet(7+is,6+is,2+is,3+is);
2245 polyhedron->
AddFacet(6+is,5+is,1+is,2+is);
2247 polyhedron->
AddFacet(5+sub4,6+sub4,7+sub4,8+sub4);
static const G4int fgkNofVertices
void ClipCrossSection(G4ThreeVectorList *pVertices, const G4int pSectionIndex, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const
G4Polyhedron * GetPolyhedron() const
G4int GetVisSubdivisions() const
void SetTwistAngle(G4int index, G4double twist)
void SetSolidClosed(const G4bool t)
G4bool IsSegCrossingZ(const G4TwoVector &a, const G4TwoVector &b, const G4TwoVector &c, const G4TwoVector &d) const
G4GenericTrap(const G4String &name, G4double halfZ, const std::vector< G4TwoVector > &vertices)
static const G4double kInfinity
G4double GetMinYExtent() const
CLHEP::Hep3Vector G4ThreeVector
G4VisExtent GetExtent() const
G4TessellatedSolid * CreateTessellatedSolid() const
virtual void DescribeYourselfTo(G4VGraphicsScene &scene) const
G4Polyhedron * fpPolyhedron
G4double DistToPlane(const G4ThreeVector &p, const G4ThreeVector &v, const G4int ipl) const
G4bool IsYLimited() const
G4VFacet * MakeSideFacet(const G4ThreeVector &downVertex0, const G4ThreeVector &downVertex1, const G4ThreeVector &upVertex1, const G4ThreeVector &upVertex0) const
virtual G4VisExtent GetExtent() const
virtual G4double GetCubicVolume()
G4double GetFaceSurfaceArea(const G4ThreeVector &p0, const G4ThreeVector &p1, const G4ThreeVector &p2, const G4ThreeVector &p3) const
G4ThreeVector NormalToPlane(const G4ThreeVector &p, const G4int ipl) const
G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pmin, G4double &pmax) const
G4GeometryType GetEntityType() const
G4bool IsXLimited() const
G4VFacet * MakeUpFacet(const std::vector< G4ThreeVector > &fromVertices, G4int ind1, G4int ind2, G4int ind3) const
virtual void AddSolid(const G4Box &)=0
G4bool ComputeIsTwisted()
G4double SafetyToFace(const G4ThreeVector &p, const G4int iseg) const
#define G4MUTEX_INITIALIZER
G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const
G4double GetSurfaceArea()
G4ThreeVector GetMaximumBBox() const
static double normal(HepRandomEngine *eptr)
G4double GetMaxXExtent() const
G4double GetMinZExtent() const
G4TessellatedSolid * fTessellatedSolid
G4ThreeVector GetPointOnSurface() const
G4VFacet * MakeDownFacet(const std::vector< G4ThreeVector > &fromVertices, G4int ind1, G4int ind2, G4int ind3) const
virtual G4double DistanceToOut(const G4ThreeVector &p) const
G4GenericTrap & operator=(const G4GenericTrap &rhs)
virtual G4Polyhedron * CreatePolyhedron() const
virtual EInside Inside(const G4ThreeVector &p) const
std::ostream & StreamInfo(std::ostream &os) const
G4bool AddFacet(G4VFacet *aFacet)
G4double GetTwistAngle(G4int index) const
G4double DistToTriangle(const G4ThreeVector &p, const G4ThreeVector &v, const G4int ipl) const
std::vector< G4ThreeVector > G4ThreeVectorList
G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
G4double GetCubicVolume()
virtual G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const
std::vector< G4TwoVector > fVertices
void AddVertex(const G4ThreeVector &v)
EInside Inside(const G4ThreeVector &p) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4ThreeVectorList * CreateRotatedVertices(const G4AffineTransform &pTransform) const
virtual G4Polyhedron * GetPolyhedron() const
G4ThreeVector GetMinimumBBox() const
G4double GetMinXExtent() const
G4Polyhedron * CreatePolyhedron() const
G4double GetMaxZExtent() const
void ReorderVertices(std::vector< G4ThreeVector > &vertices) const
EInside InsidePolygone(const G4ThreeVector &p, const std::vector< G4TwoVector > &poly) const
void AddFacet(const G4int iv1, const G4int iv2, const G4int iv3, const G4int iv4=0)
CLHEP::Hep2Vector G4TwoVector
G4double GetMaxYExtent() const
G4VSolid & operator=(const G4VSolid &rhs)
G4int GetNumberOfRotationStepsAtTimeOfCreation() const
G4double halfCarTolerance
G4bool IsSegCrossing(const G4TwoVector &a, const G4TwoVector &b, const G4TwoVector &c, const G4TwoVector &d) const
G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const
G4bool CheckOrder(const std::vector< G4TwoVector > &vertices) const
G4double GetMaxExtent(const EAxis pAxis) const
virtual G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
G4bool IsZLimited() const
virtual G4double GetSurfaceArea()
virtual G4ThreeVector GetPointOnSurface() const
G4bool fRebuildPolyhedron
G4ThreeVector fMinBBoxVector
virtual G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const
static const G4double fgkTolerance
void ClipBetweenSections(G4ThreeVectorList *pVertices, const G4int pSectionIndex, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const
G4double GetMinExtent(const EAxis pAxis) const
G4ThreeVector fMaxBBoxVector
void DescribeYourselfTo(G4VGraphicsScene &scene) const