PDA

View Full Version : Normalize Spline based on Angle


felixthecat
12-01-2006, 12:29 PM
Hello Evereybody,

I have a Problem. I am writing a MaxScript wich normalizes a SplineShape based on an Angle. That means it creates a new Spline with lots of knots in curvy areas an less points in straight areas. The reason i am writing that script is to create an optimal polyline (spline with only corner knots) for later processing in another application.

I use the lengthInterp function to "walk" along the curve while constantly checking with the lengthTangent function for angle changes. This works very good on curvy splines.

But the PROBLEM ist,
it does not work on corner knot. the lengthTangent function returns bad ("interpolated") values.

The visualize the problem simply create a spline with a sharp corner, and let the object follow that path (path constraint controller). even before the object reaches the corner it starts rotating.

I hope someone understands what i mean, and has a good solution.
Thanks

CGTalk Moderation
12-01-2006, 12:29 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.