Converting a text file into a multidimensional array of data points

The three numbers can be seen as PVector.

So you have lines and each line has 4 PVectors

So you can make a 2D grid of PVector

You need to use split() command several times:

  • One you did already

  • Next at "]," (remove [ )

  • Next at , to fill the PVector

You can see the list as a list of quads / rectangles in 3D

Chrisir