Added template based factory functions for intersections.