Problem 290

Summary: incorrect normal from G4Sphere in kNETheta case
Product: Geant4 Reporter: gas
Component: geometryAssignee: Vladimir.Grichine
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 3.2   
Hardware: PC   
OS: Linux   

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.