vectorkinectprocessingopenkinect

processing 2 - cannot find class or type named vector


I'm trying to run an old processing sketch along with my kinect that saves kinect point cloud data as OBJ files, but I'm getting an error on this line:

Vector recording = new Vector();

stating

cannot find a class or type named "Vector" - I am running processing 2. Did they get rid of this type? What should I be using instead?


Solution

  • Use PVector with Processing 2 instead of the old Vector.

    PVector recording = new PVector(40, 20);