Import Geant4 7.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 12:11:21 +02:00
parent 516dbf1a58
commit d93e1e39a9
5384 changed files with 125662 additions and 82444 deletions
@@ -26,8 +26,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VCSGfaceted.cc,v 1.14 2004/10/13 13:34:44 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4VCSGfaceted.cc,v 1.16 2005/03/23 17:16:31 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// --------------------------------------------------------------------
@@ -71,6 +71,7 @@ G4VCSGfaceted::G4VCSGfaceted( G4String name )
G4VCSGfaceted::~G4VCSGfaceted()
{
DeleteStuff();
delete fpPolyhedron;
}
@@ -363,7 +364,7 @@ G4double G4VCSGfaceted::DistanceTo( const G4ThreeVector &p,
//
void G4VCSGfaceted::DescribeYourselfTo( G4VGraphicsScene& scene ) const
{
scene.AddThis( *this );
scene.AddSolid( *this );
}
@@ -475,9 +476,12 @@ G4double G4VCSGfaceted::GetCubicVolume()
G4Polyhedron* G4VCSGfaceted::GetPolyhedron () const
{
if (!fpPolyhedron)
{
fpPolyhedron = CreatePolyhedron();
}
if (!fpPolyhedron ||
fpPolyhedron->GetNumberOfRotationStepsAtTimeOfCreation() !=
fpPolyhedron->GetNumberOfRotationSteps())
{
delete fpPolyhedron;
fpPolyhedron = CreatePolyhedron();
}
return fpPolyhedron;
}