Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! 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