Import Geant4 4.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:39:52 +02:00
parent 921d3b1cda
commit 330b82b769
4524 changed files with 178689 additions and 43575 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4EllipticalTube.cc,v 1.10 2001/07/11 10:00:16 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4EllipticalTube.cc,v 1.11 2002/05/08 13:51:26 johna Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
//
// --------------------------------------------------------------------
@@ -636,15 +636,11 @@ G4double G4EllipticalTube::DistanceToOut( const G4ThreeVector& p ) const
//
G4Polyhedron* G4EllipticalTube::CreatePolyhedron() const
{
if (dx==dy) {
//
// Special case (useful for debugging)
//
return new G4PolyhedronTubs( 0.0, dx, dz, 0, 2*M_PI );
}
G4cerr << "G4EllipticalTube: visualization of this type of solid is not supported at this time" << G4endl;
return 0;
// create cylinder with radius=1...
G4Polyhedron* eTube = new G4PolyhedronTube(0.,1.,dz);
// apply non-uniform scaling...
eTube->Transform(G4Scale3D(dx,dy,1.));
return eTube;
}