b-spline interpolation, equidistant points

Started by
1 comment, last by condorian 21 years, 9 months ago
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
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
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

This topic is closed to new replies.

Advertisement