 
     @nodesBuffer.clear()
     @edgesBuffer.clear()
-    @nodes.geometry.nodeIDs.clear()
+    @nodeIDs.clear()
 
 
   isEmpty : ->


    edgeGeometry = new THREE.Geometry()
    nodeGeometry = new THREE.Geometry()
    nodeGeometry.nodeIDs = new ResizableBuffer(1, 100, Int32Array)
    edgeGeometry.dynamic = true
    nodeGeometry.dynamic = true


  addNode : (node) ->

    @nodesBuffer.push(node.pos)
    @nodeIDs.push([node.id])

    # Add any edge from smaller IDs to the node
    # ASSUMPTION: if this node is new, it should have a
