Get rid of node.angle and node.direction in favor of node.lDir and node.rDir
Add segment API