Mesh > Getting and Setting Mesh Data > Block Versions

Block Versions
Since the amount of available Java memory might be limited, there are block versions of the mesh setters and getters, which sets or gets a subset of the data. The getters take a position argument, which specifies the first item to get, and a number argument, which specifies the number of items to get. The setters takes only the position argument; the number of items is determined by the size of the provided data. When working with the setters, remember that it is more efficient to set the data at the last position first, since sufficient space in then allocated directly and no copying and reallocation is needed.
double[][] model.mesh(<tag>).getVertex(int position, int number);
int[][] model.mesh(<tag>).getElem(type, int position, int number);
int[] model.mesh(<tag>).getGeomEntity(type, int position, int number);
model.mesh(<tag>).data().setVertex(double[][], int position);
model.mesh(<tag>).data().setElem(type, int[][], int position);
model.mesh(<tag>).data().setGeomEntity(type, int[], int position);
double[][] model.mesh(<tag>).data().getVertex(int position, int number);
int[][] model.mesh(<tag>).data().getElem(type, int position, int number);
int[] model.mesh(<tag>).data().getGeomEntity(type, int position, int number);