I’ll add tests for all the features. Thanks for fixing the bug!
Thanks, I found repeating the vertices made it look like option 2 which is ideally what I’m after. However, it wouldn’t work at the start/end of a loop, so I’m going with option 3.
const points1 = [ -5, 7, 0, 5, 7, 0, 5, 7, 0, 5, 13, 0 ]
What do you mean? You’d like to have a closed path?
Yes, a closed path. But that was just an assumption I made, it does actually work . I didn’t realise it connects the ends. e.g,
const points1 = [ -5, 7, 0, 5, 7, 0, 5, 7, 0, 5, 13, 0, 5, 13, 0, -5, 7, 0, -5, 7, 0 ]
I wonder if greased lines should have an option to do this point duplication itself. Probably even enabled by default?
Any feautre that is already available is absolutelly unnecessary so if you can achieve it by setting the points values than it’s considered to be done
However there should be a closePath option which could create a closed geometry. In that case it would have sense to implement the option. I was already thinking about this change and about non sharing vertices where the line connects (you are doing this now by doubling the coordinates). We’ll see…