 
         network.reduceRight(_makeTree)
 
-    setPositions = (root) =>
+    setNetworkPositions = (root) =>
         root.position = new THREE.Vector3()
 
         radianScale = d3.scale.ordinal()

        @scene.add network_object

        root = makeTree network
        root = setPositions root

        traverse = (node) =>
            return if ! node.position?


        traverse(root)

    linesToTree = (lines) ->
        lines = lines.map (line) ->
            line: line.line
            word: line.word
            children: line.lines.map (_) -> line: _

        reducer = (prev, current, index, array) ->
            prev_index = current.children
                .map (_) -> _.line
                .indexOf(prev.line)
            current.children[prev_index] = prev
            current

        lines.reduceRight reducer

    addLines: (lines) =>
        root = linesToTree lines
        console.log root

    animate: =>
        requestAnimationFrame @animate
