Made it work

Fixed coding errors from blind hacking, hard-coded line colour and thickness values.
Fully functional in 3-axis case

Includes coloured edges to represent weight, curved edges.
Bug fixes