Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

condorian

b-spline interpolation, equidistant points

This topic is 6015 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 am trying to create lane geometry for a road. The problem i am having is that the lanes are not equidistant between. I have tried variations of the basis function and get everything but equidistance (lanes in the middle are equidistant, or the lane spacing decreases towards the end etc). can anybody help? thanks c

Share this post


Link to post
Share on other sites
Advertisement
post your code, or explain more thoroughly how everything is working (or supposed to be working), because from your explanation "my program doesnt work help me" i don''t really know where and what went wrong.

---
shurcool
my project

Share this post


Link to post
Share on other sites
I am using the code here :
http://astronomy.swin.edu.au/~pbourke/curves/spline/

in the Knots function as it stands it generates points in the middle which are equidistant while the edges of the point set are not. setting u[j] = j as suggested in the comments above the function results in a slowly decreasing spacing between the points, which is contrary to what the word ''uniform'' defines.

hope that helps.

c

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!