I don't understand what's going on there.
If you want to work with a stroke object in GGB, then convert it to a point-list.
l1 = RemoveUndefined(First(stroke1, Length(stroke1)))
and if you need it
f = Polyline(l1)
a = Spline(l1, 3)
or (if possible)
g(x) = If(x(l1(1)) ≤ x ≤ x(l1(Length(l1))), FitPoly(l1, 9))
Thank you rami,
I tried this: Sequence(Point(stroke1,k),k,0,1,0.2)
Yes, in this case the last element (value k=1) is undefined (green). And the initialization at program start is wrong (F9 is required)
Undefined elements (in stroke1) can be removed with the conversion into a point list (red). And the program start is no problem.
I think there is a bug in creation of stroke
see the last point in the formulatext()
so to use First(stroke1, Length(stroke1) - 1) removes last undefined point and
Sequence(Point(First(stroke1, Length(stroke1) - 1), k), k, 0, 1, 0.2) works
Comments have been locked on this page!