Mathematical models for determining the intersections of quadric surfaces