I am working on a project and I have to generate vertex points for a building with multiple floors. my question is how do I make sure that the floor above has vertex points smaller or equal to the vertex points of the floor below?? in other words, the floor above should either be inside the floor below in 2D or exactly the same. I have trouble with the vertex points being smaller.
I am trying to get the values into a 2D array but i want it to start storing the value from an index other than 0. Below is the code but gives me "
ArrayIndexOutOfBoundsException: 4" on the highlighted line....I am so tired...Please help me..
Thank you
for (int i = from; i < rows; i++) {
// from is an int value where i want the rows to start from.
// split current line
String[] rows = split(ulinesA[i - from], " ");
// iterate over values
for (int j = 0; j< columns; j++) {
// parse and store the value
valArray[i][j] = float(rows[j]); // where the error is.
After i have split the file elements, i pass them to another class, question is, is it possible to store this split data into arrays again? and if yes how??