Jump to content

Flat band that procedurally twists and bends


Recommended Posts

I've been trying to procedurally model the path of a flat band (think a flexible metal tape) as it moves through space.

I need the the two outer rails to start at a fixed location and arrive at a second fixed location and direction in 3 dimensional space ( not flat on the ground like rail tracks etc.).

Similar to how a metal tape measure would start at one point (at the housing) and one might hold the tip at another pointed in a different direction.

The two outer edges will bend and twist together but will remain the same distance from each other as well as have the same over all length.

This is also what contributes to the twisting affect which is giving me the problems.

I need to find a procedural way to generate the shortest path between the two ends accounting for the twisting etc.

Remember, in a true band there is no actual "turning", just twisting and bending under tension to create a "turn".

I've experimented with "growing" the two ends towards each other in segments using a coordinate system that steers each segment in iterations towards the other by only bending from the middle , twisting from an outer edge or twisting from center.

This kind of works but ultimately could never meet the other end.

I wonder if there is a simpler approach or solution using curves etc. that someone has already figured out as I'm sure I'm not the first to procedurally model a rigid, yet bendable, surface in such a manner.

Thanks!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

If your band needs to be the same width along the entire length, why treat it as 2 rails? Would it not be easier to find the midpoint of the band and then manipulate up-vector along the length to get your different twists, then Sweep? If you need it to line up at the end, you can precompute the end's up-vector and smooth out the transition towards the end to meet it.


Edit: attached naive solve

metal_band.hiplc

Edited by Fenolis
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...