#include "pointRecorder.h" //------------------------------------------------------------------ pointRecorder::pointRecorder(){ maxNumPts = 500; } //------------------------------------------------------------------ void pointRecorder::draw() { ofNoFill(); ofBeginShape(); for (int i = 0; i < pts.size(); i++){ ofVertex(pts[i].x, pts[i].y); } ofEndShape(false); } //------------------------------------------------------------------ void pointRecorder::addPoint(ofPoint pt) { pts.push_back(pt); if (pts.size() > maxNumPts){ pts.erase(pts.begin()); } }