Fixed a crash in SDGenerator.
Fixed a crash in SDGenerator.

The bug was a stupid numerical instability, leading to a NaN
in acos().

tkemmer/ball,tkemmer/ball,tkemmer/ball,tkemmer/ball,tkemmer/ball,tkemmer/ball