| Summary: | Buggy DistanceToIn computation in G4TesselatedSolid and Facets | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Oliver Merle <Oliver.Merle> |
| Component: | geometry/solids | Assignee: | Gabriele Cosmo <Gabriele.Cosmo> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | trivial | ||
| Priority: | P5 | ||
| Version: | other | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Oliver Merle
2010-02-19 12:42:42 CET
(In reply to comment #0) > ** Quick fix: > > I added a quick and dirty fix to my geant version by changing "distFromSurface > > 0.5*kCarTolerance" to "distFromSurface >= -0.5*kCarTolerance" in > G4TessellatedSolid::DistanceToIn(G4ThreeVector&, G4ThreeVector&) I think I made some additional changes to the triangular facet to fix the bug. I've done it some time ago and don't remember all changes. If requested, I download the original source again and run a diff. But as I mentioned, its just a dirty hack. Issue most likely correlated with report #1103. Potential solution also proposed. *** This problem has been marked as a duplicate of problem 1103 *** |