Import Geant4 10.3.0.beta source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4TessellatedSolid.cc 94457 2015-11-18 14:35:46Z gcosmo $
|
||||
// $Id: G4TessellatedSolid.cc 95311 2016-02-04 13:54:13Z gcosmo $
|
||||
//
|
||||
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
//
|
||||
@@ -1968,7 +1968,7 @@ G4double G4TessellatedSolid::GetCubicVolume ()
|
||||
G4VFacet &facet = *fFacets[i];
|
||||
G4double area = facet.GetArea();
|
||||
G4ThreeVector unit_normal = facet.GetSurfaceNormal();
|
||||
fCubicVolume += area * (facet.GetVertex(0) * unit_normal);
|
||||
fCubicVolume += area * (facet.GetVertex(0).dot(unit_normal));
|
||||
}
|
||||
fCubicVolume /= 3.;
|
||||
return fCubicVolume;
|
||||
|
||||
Reference in New Issue
Block a user