Replace sphere intersection method from Graphic GEMS.