In a class I’ve written, I am just trying to initialize a vector the way I have been in the past. Here is my header file:
#ifndef _OSC_THREAD
#define _OSC_THREAD
#include "ofMain.h"
class oscThread : of3dPrimitive {
public:
void setup();
void draw();
void update();
ofVec3f originP;
ofVec3f destP;
vector<float> offsetZ;
ofColor color;
int res; //Resolution
int speed; //Speed (lower=faster)
float amp; //Amplitude
float f; //Frequency
float rot; //Rotation
int numVerts;
float helixTest;
oscThread(ofVec2f origin, ofMesh mesh);
};
#endif
And it is really just vector offsetZ that is giving me a bad access error, pointing me to of3DPrimitive, and then to ofNode. Does anyone have any advice? I feel like it must be something simple, but I can’t seem to figure out what I’m doing differently.