within my trip to polylines, I’d need:
- to grow them progressively (adding vertices progressively)
- to draw them progressively (being able to draw it progressively)
I think the best bet could be to have 2 polylines:
- one precalculated (with all dots already calculated at the init)
- another one for which I add the vertices from the precalculated one.
I can draw the second one at each time and as vertices are added progressively too, that one will seem to grow.
Does it makes sense to you ?
Maybe create a specific class like livingPolyline (living for growable etc) and even not having 2 polylines, but just one and an array with precalculated dots?
Basically, it would be useful to be able to draw a polyline from a vertices to another using percent for drawing too.
Then I’ll be able to create livingPolyline of livingPolylines (branching…)