generate_cp_formula_data function

Generate Control Polygon Formula and Data