10-01-2018, 03:13 AM
(09-30-2018, 10:37 PM)Neon22 Wrote: 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).thanks for these info's. The "crazy" torcions sometimes appears are no so frequent now. I also noticed them in others apps as I have been watching some videos - so, by now, I will not give them too much attention.
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.
Quote: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 want to make that kind of loft available too, but I will need to work in transpose the Wings3d code that is used to pick multiple objects - in my case, curves. That should allow us to pick vectors too, but it's still not priority.
I also want to implement mirror option, but I'm going to need the same stuff for that.
As I have been saying, it's like I was creating a wings3d app inside Wings3D to work with curves. It'll take long time to get everything ready. So, I'm working on the basics and then we can have something with some useful to start and we can go increasing options further.