add the segment direction information in the tree.x
Merge pull request #2 from HuguesBrun/master

segment direction