I would like to create objects with vertices and points, similar to class "box"
My problem is, I have no clue how to use the indices and normals.
Maybe someone can give me an example for a "plane" (best with two faces)
Mesh seems to be TriMesh? Is that correct?
private static final short[] GEOMETRY_INDICES_DATA = {
2, 1, 0, 3, 2, 0, // back
6, 5, 4, 7, 6, 4, // right
10, 9, 8, 11, 10, 8, // front
14, 13, 12, 15, 14, 12, // left
18, 17, 16, 19, 18, 16, // top
22, 21, 20, 23, 22, 20 // bottom
};
private static final float[] GEOMETRY_NORMALS_DATA = {
0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, // back
1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, // right
0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, // front
-1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, // left
0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, // top
0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0 // bottom
};
private static final float[] GEOMETRY_TEXTURE_DATA = {
1, 0, 0, 0, 0, 1, 1, 1, // back
1, 0, 0, 0, 0, 1, 1, 1, // right
1, 0, 0, 0, 0, 1, 1, 1, // front
1, 0, 0, 0, 0, 1, 1, 1, // left
1, 0, 0, 0, 0, 1, 1, 1, // top
1, 0, 0, 0, 0, 1, 1, 1 // bottom
};