Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -57,10 +57,6 @@
|
||||
|
||||
#define G4warn G4cout
|
||||
|
||||
namespace {
|
||||
G4int volumeCount = 0;
|
||||
}
|
||||
|
||||
G4PhysicalVolumeModel::G4PhysicalVolumeModel
|
||||
(G4VPhysicalVolume* pVPV
|
||||
, G4int requestedDepth
|
||||
@@ -224,7 +220,7 @@ void G4PhysicalVolumeModel::DescribeYourselfTo
|
||||
|
||||
G4Transform3D startingTransformation = fTransform;
|
||||
|
||||
volumeCount = 0;
|
||||
fNTouchables.clear(); // Keeps count of touchable drawn at each depth
|
||||
|
||||
VisitGeometryAndGetVisReps
|
||||
(fpTopPV,
|
||||
@@ -232,11 +228,6 @@ void G4PhysicalVolumeModel::DescribeYourselfTo
|
||||
startingTransformation,
|
||||
sceneHandler);
|
||||
|
||||
// G4cout
|
||||
// << "G4PhysicalVolumeModel::DescribeYourselfTo: volume count: "
|
||||
// << volumeCount
|
||||
// << G4endl;
|
||||
|
||||
// Reset or clear data...
|
||||
fCurrentDepth = 0;
|
||||
fpCurrentPV = fpTopPV;
|
||||
@@ -685,7 +676,9 @@ void G4PhysicalVolumeModel::DescribeAndDescend
|
||||
theNewAT = centering * newTranslation * oldRotation * oldScale;
|
||||
}
|
||||
|
||||
volumeCount++;
|
||||
auto fullDepth = fCurrentDepth + (G4int)fBaseFullPVPath.size();
|
||||
fNTouchables[fullDepth]++; // Increment for every touchable drawn at each depth
|
||||
|
||||
DescribeSolid (theNewAT, pSol, pVisAttribs, sceneHandler);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user