Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Good morning,
I am looking for a method to calculate the length of a 3D spline. The data of th spline is given as an array of 3D points and an array with tangent vectors. These data is being delivered as an output from Toolkit functions ProSplinedataGet() or ProCablesegmentPointsGet() when working with Pro/CABLING segments. Especially for the cabling segment there is no function to eval the length of the segment/spline.
Does anybody out there have a piece of code or a link to an algorithm in the www that allows calculating the spline length by the given geom representationof points and tangents? There are a lot of docs dealing with the theory of spline approximation and interpolation. But these are all very complex to understand since I don't want to spend days dealing with math...
Thanks for any ideas on that.
Andreas
__________________________________
Andreas Hellmann
MCAD Services Pro/E & Pro/E customization
Rudolf-Diesel-Str. 6
D-65439 Floersheim / Germany
phone: +49 6145 598296
mail: -
As you have expalined you seem to have ProCurve object with you. This can be used to get spline length using direct API.It is
ProCurveLengthEval() which returns length of the curve you can check ifcuve with you is spline using its type check ,
ProCurveTypeGet().
HTH