private static void parseNodes()

in app/src/main/java/com/facebook/sample/rendering/SampleGLTFReader.java [183:197]


    private static void parseNodes(GLTFScene output, JSONArray nodes) {
        for (int i = 0; i < nodes.length(); ++i) {
            try {
                JSONObject jsonObject = nodes.getJSONObject(i);
                GLTFScene.Node node = new GLTFScene.Node();
                if (jsonObject.has("name")) {
                    node.name = jsonObject.getString("name");
                }
                node.mesh = jsonObject.getInt("mesh");
                output.nodes.add(node);
            } catch (JSONException e) {
                Log.e(TAG, e.getMessage());
            }
        }
    }