34 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
40 using namespace CLHEP;
47 G4UBox::G4UBox(
const G4String& pName,
51 : Base_t(pName, pX, pY, pZ)
60 G4UBox::G4UBox( __void__&
a )
77 G4UBox::G4UBox(
const G4UBox& rhs)
86 G4UBox& G4UBox::operator = (
const G4UBox& rhs)
90 if (
this == &rhs) {
return *
this; }
94 Base_t::operator=(rhs);
103 G4double G4UBox::GetXHalfLength()
const
107 G4double G4UBox::GetYHalfLength()
const
111 G4double G4UBox::GetZHalfLength()
const
119 fRebuildPolyhedron =
true;
124 fRebuildPolyhedron =
true;
129 fRebuildPolyhedron =
true;
150 return new G4UBox(*
this);
162 pMin.
set(-dx,-dy,-dz);
163 pMax.
set( dx, dy, dz);
167 if (pMin.
x() >= pMax.
x() || pMin.
y() >= pMax.
y() || pMin.
z() >= pMax.
z())
170 message <<
"Bad bounding box (min >= max) for solid: "
172 <<
"\npMin = " << pMin
173 <<
"\npMax = " <<
pMax;
174 G4Exception(
"G4UBox::BoundingLimits()",
"GeomMgt0001",
185 G4UBox::CalculateExtent(
const EAxis pAxis,
193 BoundingLimits(bmin,bmax);
197 return bbox.CalculateExtent(pAxis,pVoxelLimit,pTransform,pMin,pMax);
212 #endif // G4GEOM_USE_USOLIDS