Skip to content

Fix for on surface and moving out condition for grazing rays on sphere.

Andrei Gheata requested to merge fix_dout_sph into master

DistanceToOut for sphere returned kInfLength for rays starting from surface and having the direction almost perpendicular to the position vector, but slightly inwards. Such rays were supposed to give a crossing solution for intersecting the outer surface, but numerically did not in case the surface point is close to rmax+kTolerance. This fixes such problems, and also the G4+VecGeom dna example test.

Merge request reports