Farin's CAGD book code