putChildMeshes(parentNode,(TriMeshChunk) noc.whatIAm,((KeyframeInfoChunk)keyframes.objKeyframes.get(objectKey)).pivot);
if (keyframes ==null || keyframes.objKeyframes==null || keyframes.objKeyframes.get(objectKey)==null) putChildMeshes(parentNode,(TriMeshChunk) noc.whatIAm,new Vector3f(0,0,0)); else putChildMeshes(parentNode,(TriMeshChunk) noc.whatIAm,((KeyframeInfoChunk)keyframes.objKeyframes.get(objectKey)).pivot);
    private void buildObject() throws IOException {        spatialNodes=new ArrayList();   // An ArrayList of Nodes        spatialNodesNames=new ArrayList();   // Their names        Iterator i=objects.namedObjects.keySet().iterator();        while (i.hasNext()){            String objectKey=(String) i.next();            NamedObjectChunk noc=(NamedObjectChunk) objects.namedObjects.get(objectKey);            spatialNodesNames.add(noc.name);            if (noc.whatIAm instanceof TriMeshChunk){                Node parentNode=new Node(objectKey);                putChildMeshes(parentNode,(TriMeshChunk) noc.whatIAm,((KeyframeInfoChunk)keyframes.objKeyframes.get(objectKey)).pivot);                if (parentNode.getQuantity()==1){                    spatialNodes.add(parentNode.getChild(0));                    ((Spatial)parentNode.getChild(0)).setName(parentNode.getName());                } else                    spatialNodes.add(parentNode);            } else if (noc.whatIAm instanceof LightChunk){                spatialNodes.add(createChildLight((LightChunk)noc.whatIAm));            } else{                spatialNodes.add(null);            }        }    }