I solved the problem without having to write a program. Use two "point on curve"'s with a straight line between them. In the middle of this straight line is another line perpedicular to the first line. On the last line is a translational joint to the center of the ball. The ball has a rev joint...
Not yet modelled. But I could bring it in from UG (unigraphics) and convert the curve to spline. It might be possible to get a away with straight lines and radiusses but I rather write a code that could be apllied to any later change in the pipe.
Thanks for the response. Yes, it is a 3-d spline in space and it is about modeling the aerodynamic forces on a ball inside a pipe. So the spline describes the center of the pipe and the force on the ball is a function of the distance between the center (spline) and the ball center.
I want to calculate (runtime) the mini distance and direction between a marker that is moving close to a spline and the spline itself. Reason: The distance between the spline and marker decribes the force on the marker. Is there a function or do you have to write your own code ?
Francois