09-30-2018, 10:37 PM
Micheus,
I just checked back in and this looks fantastic. I was playing with splines etc recently in pyglet and made some possibly related progress. You might be able to use some of it. The spherical interpolation in quaternions and conversion between euler and quats might be useful for eliminating the gimbal lock spins in the wires (normals and tangents etc).
Look in quaternions.py here: https://gitlab.com/pyglet_addons/interpolations
The rest of the code in that repo is not useful for you yet - I will check in my splines code and ping you when its up in a day or two.
On a side note you will probably have already worked out that your wire can be used as a trajectory (orientable wire with look-ahead) and that a cute way to visualise it is to draw it as a ladder strip so you can see the banking visually. Bruce Steele made a useful plugin for the Symbolics S-Geometry in 1988 for this but I've lost the code(was in s-hacks). Your strip post reminded me of that.
Personally I found lofting between closed sets of wires - spread out along the Z(say) axis super useful for making objects. Don't forget to allow mirror operations on wires for symmetry.
I just checked back in and this looks fantastic. I was playing with splines etc recently in pyglet and made some possibly related progress. You might be able to use some of it. The spherical interpolation in quaternions and conversion between euler and quats might be useful for eliminating the gimbal lock spins in the wires (normals and tangents etc).
Look in quaternions.py here: https://gitlab.com/pyglet_addons/interpolations
The rest of the code in that repo is not useful for you yet - I will check in my splines code and ping you when its up in a day or two.
On a side note you will probably have already worked out that your wire can be used as a trajectory (orientable wire with look-ahead) and that a cute way to visualise it is to draw it as a ladder strip so you can see the banking visually. Bruce Steele made a useful plugin for the Symbolics S-Geometry in 1988 for this but I've lost the code(was in s-hacks). Your strip post reminded me of that.
Personally I found lofting between closed sets of wires - spread out along the Z(say) axis super useful for making objects. Don't forget to allow mirror operations on wires for symmetry.