Problem 290 - incorrect normal from G4Sphere in kNETheta case
Summary: incorrect normal from G4Sphere in kNETheta case
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: geometry (show other problems)
Version: 3.2
Hardware: PC Linux
: P2 normal
Assignee: Vladimir.Grichine
URL:
Depends on:
Blocks:
 
Reported: 2001-08-23 20:02 CEST by gas
Modified: 2001-08-27 08:30 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 gas 2001-08-23 20:02:16 CEST
G4Sphere::SurfaceNormal() returns the wrong normal for points on the end theta
plane.  The reason is a typo on line 671 of G4Sphere.cc: the Z component of the
normal should be
  -sin(fSTheta+fDTheta)
                ^
and not
   -sin(fSTheta+fSTheta)

(Easy to do since the S is right next to the D on the keyboard.)
Comment 1 Gabriele Cosmo 2001-08-27 02:23:59 CEST
Thanks for the report. We'll check that!
Comment 2 Gabriele Cosmo 2001-08-27 08:30:59 CEST
Fixed in tag "geom-solids-csg-V03-02-00".
Will be included in next public patch or release.