Parsing points from a text file

Hello @Aaron_Barber272 ,

Please format your code as a courtesy to the community:
https://discourse.processing.org/faq#format-your-code

Each of your loops ends with x, y, and z set to the last execution of that loop and each element of globe[] is the same.

You can do most of this in setup() and use the final array(s) you need in draw().

Try this in one loop which acts on each element:

String lines [] = loadStrings("Points.txt");

float[] pv;
PVector[] globe = new PVector[10];

int i = 0;
pv = float(splitTokens(lines[i], ","));
globe[i] = new PVector(pv[0], pv[1], pv[2]);
print(globe[i].x, globe[i].y, globe[i].z);

In a loop (you can add one) it outputs:

image

10 points plotted (2 are duplicates):

I used this instead of scale():

:)