Edit data in a float buffer

@sash – this question is listed in p5.js – can you just confirm that you are only using Processing (Java) for this project?

Have you looked at the RecordPointCloud example?

…and at the available methods on a FloatBuffer for inspection?

https://docs.oracle.com/javase/7/docs/api/java/nio/FloatBuffer.html

It sounds like you just want to replace those values (which I believe are in ordered triples?) with a subsampled list of values, so that

0,1,2, 3,4,5, 6,7,8, 9,10,11

becomes

0,1,2, 6,7,8

Is that right?

I think (?) that the Kinect library grabs raw data and puts it in the float buffer here:

…which it originally dumps from JNI here: