September 27, 2016, 2:25pm
Before I create an issue on Github, I want to check if I might be doing something wrong.
The docs for
Creates an ofPolyline from a vector of ofVec2f or ofPoint objects.`
But doing the same with ofVec2f crashes on the last line:
Am I missing something?
November 15, 2016, 10:26am
To update; you can create an
ofPolyline from an
ofVec3f vector, but not an
ofVec2f vector. This (same as above but with
ofVec3f) does work:
vector <ofVec3f> vecs;
I tried to take a look at the source, and locally I have a
ofPolyline.cpp file (
of_v0.9.3_linux64_release/libs/openFrameworks/graphics/ofPolyline.cpp), but I can’t seem to find this file in the Github repo?
Update: created an issue
November 15, 2016, 1:09pm
The documentation in the web refers to the current official version. In the repo ofVec* is now deprecated and is recomended to use glm::vec* instead.
ofPolyline is now templated (that’s why there’s no cpp) and by default uses glm::vec3.but you can also create a polyline of glm::vec2 or ofVec2f using:
November 15, 2016, 1:13pm
So that means the current documentation is wrong in saying you can use
ofVec2f, but it (
ofVec2f) will be removed in the next update anyway?
November 15, 2016, 1:17pm
yeah you are correct, the constructor docs should say ofVec3f or ofPoint which are actually the same. if you want to send a PR to ofSite?
November 16, 2016, 10:21am
@arturo @javl, I can take care of the PR