I have written a program to deform the shape of a sphere where I have come across to errors in my code.
vertices0 = sphere.getMesh().getVertices();
! No viable overloaded ‘=’
vector<ofPoint> &vertices = sphere.getMesh().getVertices();
! Non-const lvalue reference to type ‘vector’ cannot bind to a value of unrelated type ‘vector<glm::tvec3<float, glm::packed_highp>>’
I am using the ‘openFrameworks Essentials’ book for reference. But it was published in 2015 so might just be because the structure of the code has changed by then.
Any ways I can change these lines to make it work?