private void readCompressedMesh() throws IOException {
CompressedMesh cmesh = mesh.compressedMesh;
float[] vertexFloats = readPackedFloats(cmesh.vertices);
for (int i = 0; i < vertexFloats.length / 3; i++) {
Vector3f v = new Vector3f();
v.x = vertexFloats[i * 3];
v.y = vertexFloats[i * 3 + 1];
v.z = vertexFloats[i * 3 + 2];
vertices.add(v);
}
float[] normalFloats = readPackedNormals(cmesh.normals, cmesh.normalSigns);
for (int i = 0; i < normalFloats.length / 3; i++) {
Vector3f vn = new Vector3f();
vn.x = normalFloats[i * 3];
vn.y = normalFloats[i * 3 + 1];
vn.z = normalFloats[i * 3 + 2];
normals.add(vn);
}