A 3D vector approach for the static analysis of cables