Nombre max de points

regen

N = 6 (slider from 2 to maxN, step 1)
maxN: 7
ChampTexte1 = Textfield(maxN)
lastN = 6 (slider from 0 to maxN, step 1)
minX = -3
maxX = 3
minY = 3
maxY = -3
D: (minX, minY)
B: (minX, maxY)
C: (maxX, maxY)
A: (maxX, minY)
a: 1.57642983
b: 1.57642983
poly1, d, a_1, c, b_1 = Polygon(D, A, C, B)
P_{0} = (1, 1)
P_{3} = (2, 2)
P_{1} = (-2, 2)
P_{2} = (-2, -2)
P_{4} = (2, -2)
P_{5} = (-1, -1)
curve = CurveCartesian((t^(5) * (P_{5} - (5 * P_{4}) + (10 * P_{3}) - (10 * P_{2}) + (5 * P_{1}) - P_{0})) + ((5 * t^(4)) * (P_{4} - (4 * P_{3}) + (6 * P_{2}) - (4 * P_{1}) + P_{0})) + ((10 * t^(3)) * (P_{3} - (3 * P_{2}) + (3 * P_{1}) - P_{0})) + ((10 * t^(2)) * (P_{2} - (2 * P_{1}) + P_{0})) + ((5 * t) * (P_{1} - P_{0})) + P_{0}, t, 0, 1)
f = PolyLine(P_{0}, P_{1}, P_{2}, P_{3}, P_{4}, P_{5})