Problem 1062

Summary: GetSurfaceArea call to G4VCSGfaceted returns CubicVolume instead
Product: Geant4 Reporter: Nathaniel <nathaniel.cunningham>
Component: geometry/solidsAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P3    
Version: 9.2   
Hardware: Apple   
OS: Mac OS X   

Description Nathaniel 2009-05-08 16:11:49 CEST
Calling the GetSurfaceArea method on a G4Polyhedra solid returns the numerical value of the volume instead of surface area.  This method is inherited from G4VCSGfaceted; G4VCSGfaceted contains the line (number 538)
else   fSurfaceArea = EstimateCubicVolume(fStatistics,fAreaAccuracy);

http://www.lcsim.org/software/geant4/doxygen/html/G4VCSGfaceted_8cc-source.html#l00535

Regards,
Nathaniel
Comment 1 Gabriele Cosmo 2009-05-08 16:32:57 CEST
Thanks for spotting this!
The code is now corrected in the development branch and the fix will be included in the next release or release patch.