Get in between vertices from a polyline

Hi, I have done a polyline with 4 vertices:
a
Now I would like to get some in between vertices coordinates:
b
Is that posible? it would be a kind of subdivision of the polyline.

I need it for making a move path for another element.

Thank you

#polyline #line #subdivide #subdivision #vertex #vertices #path

Hi @Ezequiel_Leon_Zybert, have a look at the documentation for the ofPolyline class: ofPolyline | openFrameworks. There are a few ways to do this, depending. ofPolyline::getPointAtPercent() or ofPolyline::getPointAtIndexInterpolated() might be useful in this case.

1 Like

Thank you TimChi