Issue with `polyline.getVertices()`

Hi,

I’m reading the ofBook and I ran into an issue with this line vector<ofVec3f> vertices = polyline.getVertices();. Xcode is telling me that No viable conversion from 'vector<glm::tvec3<float, glm::packed_highp>>' to 'vector<ofVec3f>'.

I’ve download the OF just yesterday if it matters. And this is the example that I’m trying to work on.

PS. Love the book :smiley:

Thanks in advance.
A.

Hi,

getVertices() now return a vector< glm::vec3 >:
vector< glm::vec3 > v = polyline.getVertices() ;

OF now use the GLM library, and some previous code need corrections (blog).

Thanks!

1 Like