A curve and surface library