Extract vertex calculation. Make bezier_patch self-contained.