/** * Proceses the indices of a mesh. * * @param aiMesh - AIMesh to process indices for. * @param indices - List of indices to add processed indices to. */ private static void processIndices(AIMesh aiMesh, List<Integer> indices) { int numFaces = aiMesh.mNumFaces(); AIFace.Buffer aiFaces = aiMesh.mFaces(); for (int i = 0; i < numFaces; i++) { AIFace aiFace = aiFaces.get(); IntBuffer buffer = aiFace.mIndices(); while (buffer.remaining() > 0) { indices.add(buffer.get()); } } }
private static void processIndices(AIMesh aiMesh, List<Integer> indices) { int numFaces = aiMesh.mNumFaces(); AIFace.Buffer aiFaces = aiMesh.mFaces(); for (int i = 0; i < numFaces; i++) { AIFace aiFace = aiFaces.get(i); IntBuffer buffer = aiFace.mIndices(); while (buffer.remaining() > 0) { indices.add(buffer.get()); } } }
protected static void processIndices(AIMesh aiMesh, List<Integer> indices) { int numFaces = aiMesh.mNumFaces(); AIFace.Buffer aiFaces = aiMesh.mFaces(); for (int i = 0; i < numFaces; i++) { AIFace aiFace = aiFaces.get(i); IntBuffer buffer = aiFace.mIndices(); while (buffer.remaining() > 0) { indices.add(buffer.get()); } } }