Jump to content
  • Advertisement
Sign in to follow this  
yapposai

spline fitting with stiffness

This topic is 4255 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I am trying to make a sort of simulator for flexible hoses. The user inputs samples points/anchor points where the hose should pass and the program calculates the path of the hose. I am using cubic interpolation to make the a piecewise curve, however I am stumped as to how to add stiffness and diameter to the hose. A stiff/thick hose might not be able to bend as the interpolated spline. I would like to auto adjust the curve to fit the constraints or at the very least know if the path is not possible based on the diameter, stiffness. Is there a way to modify the cubic spline interpolation to take into account diameter and some sort of stiffness value? I was also thinking of not using splines but smaller line segments and max angle bend. stiffer hoses have longer subsegments and smaller max bends angle. Then I just try to get closer to the next anchor point within the max_bend angle. The problem with this is the bends will be concentrated at the start, which looks unnatural. Any help, suggestions will be much appreciated. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Given the possible non-existence of solutions, I'm not sure that splines are very well-suited to the problem. Certainly not in an analytical sense.

Perhaps you'd have more luck posing it as an extremal (variational) problem. If you set a constraint on the curvature of the hose (bounding the second derivative absolutely) while minimising the closest distance to each node, you'd be guaranteed a solution (not necessarily a unique one) and you have a host of numerical methods available to you. This would be a near-direct application of Euler-Lagrange. It doesn't exactly sound like a walk in the park though.

Regards
Admiral

Edit: Disappearing word.

[Edited by - TheAdmiral on November 27, 2006 6:52:11 AM]

Share this post


Link to post
Share on other sites
Yep, I don't think splines alone can cut this. Thanks for the suggestions, I'll look into them and see what I can come up with.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!