| Summary: | incorrect normal from G4Sphere in kNETheta case | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | gas |
| Component: | geometry | Assignee: | Vladimir.Grichine |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 3.2 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Thanks for the report. We'll check that! Fixed in tag "geom-solids-csg-V03-02-00". Will be included in next public patch or release. |
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.)