Spiral Function and Its Application in CAGD