Problem 1062 - GetSurfaceArea call to G4VCSGfaceted returns CubicVolume instead
Summary: GetSurfaceArea call to G4VCSGfaceted returns CubicVolume instead
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: geometry/solids (show other problems)
Version: 9.2
Hardware: Apple Mac OS X
: P3 minor
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2009-05-08 16:11 CEST by Nathaniel
Modified: 2009-05-08 16:32 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.