Draft: Library for routing flat cables

Development draft Not to be merged

Flat cables do not bend in the plane of their width. If they are thin, they can be routed at an angle, and displaced in that plane, through two out-of-plane curves.

This is a test of how to calculate the required bends, as a possible solution to routing the ribbon cable on the Upright version.

Features:

  • Take arbitrary positions and angles for the input and output cables
  • Calculate the positions and angles of the required out of plane bends
  • Account for the way in which the cable moves along a cylinder when it is curved over it at an angle, to make sure that the cable is not accidentally shifted sideways, and to make forming cylinders the correct length
  • Build curve and place curve forming cylinders
  • build and place rendered curved cable over the cylinders.

image

Merge request reports

Loading