157 if (res<=0) {
return false; }
164 std::vector<G4ThreeVector> points;
168 G4cout <<
"Checking overlaps for parameterised volume " 198 trials++; retval =
true;
199 std::ostringstream message;
200 message <<
"Overlap with mother volume !" <<
G4endl 201 <<
" Overlap is detected for volume " 203 <<
" with its mother volume " 205 <<
" at mother local point " << mp <<
", " 206 <<
"overlapping by at least: " 211 <<
"NOTE: Reached maximum fixed number -" << maxErr
212 <<
"- of overlaps reports for this volume !";
216 if (trials>=maxErr) {
return true; }
219 points.push_back(mp);
224 std::vector<G4ThreeVector>::iterator
pos;
235 for (pos=points.begin(); pos!=points.end(); pos++)
241 if (solidB->Inside(md)==
kInside)
243 G4double distout = solidB->DistanceToOut(md);
246 trials++; retval =
true;
247 std::ostringstream message;
248 message <<
"Overlap within parameterised volumes !" <<
G4endl 249 <<
" Overlap is detected for volume " 251 <<
" with parameterised volume instance: " << j
253 <<
" at local point " << md <<
", " 254 <<
"overlapping by at least: " 256 <<
", related to volume instance: " << j <<
".";
260 <<
"NOTE: Reached maximum fixed number -" << maxErr
261 <<
"- of overlaps reports for this volume !";
265 if (trials>=maxErr) {
return true; }
const G4RotationMatrix * GetRotation() const
virtual void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
virtual G4int GetMultiplicity() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
virtual G4ThreeVector GetPointOnSurface() const
G4GLOB_DLL std::ostream G4cout
virtual EInside Inside(const G4ThreeVector &p) const =0
G4VPVParameterisation * fparam
const G4String & GetName() const
virtual G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const =0
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4String & GetName() const
virtual void ComputeTransformation(const G4int, G4VPhysicalVolume *) const =0
G4LogicalVolume * GetMotherLogical() const
const G4ThreeVector & GetTranslation() const
G4VSolid * GetSolid() const
static const G4double pos