Spline mesh with Curves overlapping

Hi I am trying to bring spline curves striaght but I am facing issue when the next point is more that 90degrees or I am not understanding problem
306626-
][2]

You can observe where the red mark is there mesh is distorting and where green is there the mesh is tanking curve

I attached my event graph and construction script

Here i will call reset option whenever I add new point in spline

Yes, it’s because the tangent at a given point isn’t actually related to the radius of the curve.

I’m trying to work out what is…

EDIT: After your process, things get a bit better if you go along the spline with:

306649-curve.jpg

But basically the only way you’ll get it smoother is to either move the point, so the angle is less acute. Or to add points either side of it.

Well, the construction script is run when you do anything to the spline, hence the dancing…

Thanks, I don’t understand why my spline mesh dances when i move other point in the same spline
306646-
][2]

306650-type2.jpg

whenever i move selected point whole spline will make some dances

Do you have a construction script?

yes,PFA I gave both construction script and event graph to reset mesh whenever i add new point i will call that and also length i took is 100

link text
link text

If find this is a very good general construction script for splines:

[link text][2]

And in previous version of project i tried to add points either side as you said but things are getting complex and curve is not correct in runtime while adding dynamic points so I thought of using math to solve but i am not able to get exact solution

I think you are not near actually. If you write a script to print out the tangents and then make an acute angle, the tangents don’t change. That’s the problem.

It’s to do with how the spline direction changes over several points…