Jump to content
• Advertisement

# Bounded path smoothing

This topic is 4705 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

I have a path I need to smooth, and I want the interpolating function to be bounded by a certain distance from the path. It should look like this: Where r is the distance from the path. I think I should use a Bezier curve and add some control points at the desired distance, I just don't know where to place those points. Any ideas ?

#### Share this post

##### Share on other sites
Advertisement
The obvious solution is to place the middle point on the intersection of your lines, and the start and end points on the two different lines. By putting these at a distance R from the intersection, you also bound the distance from the line.

[EDIT] By obvious, I mean this is the first solution I thought of (and that I might have overlooked an important detail). I did not imply any offense.

[Edited by - ToohrVyk on December 3, 2005 9:28:39 AM]

#### Share this post

##### Share on other sites
Quote:
 Original post by kshahar1I have a path I need to smooth, and I want the interpolating function to be bounded by a certain distance from the path. It should look like this:Where r is the distance from the path.I think I should use a Bezier curve and add some control points at the desired distance, I just don't know where to place those points. Any ideas ?

I came across this article, which you might find helpful.

#### Share this post

##### Share on other sites
Thanks! It seems simpler than I thought it would be

#### Share this post

##### Share on other sites

• Advertisement
• Advertisement

• ### Popular Contributors

1. 1
Rutin
46
2. 2
3. 3
4. 4
5. 5
• Advertisement

• 13
• 10
• 12
• 10
• 13
• ### Forum Statistics

• Total Topics
632993
• Total Posts
3009763
• ### Who's Online (See full list)

There are no registered users currently online

×

## 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!